Commit Graph

985 Commits

Author SHA1 Message Date
Vinnie Falco c0e5f14702 WebSocket writes return the bytes transferred (API Change):
* Stream write operations now return the number of bytes
transferred from the caller's input buffers.

Actions Required:

* Modify websocket write completion handlers to receive
  the extra std::size_t bytes_transferred parameter.
2017-09-03 20:05:19 -07:00
Vinnie Falco 942bca0cc3 Set version to 111 2017-08-31 17:52:39 -07:00
Vinnie Falco 647b3d68e1 Suspended ops special members 2017-08-31 17:52:37 -07:00
Vinnie Falco 51a5a36118 Refactor stream operations and tests plus coverage 2017-08-31 17:52:36 -07:00
Vinnie Falco 9f089c2a33 Fix utf8 check split code point at buffer end 2017-08-31 17:52:36 -07:00
Vinnie Falco c8a42bba0a Set version to 110 2017-08-29 08:22:16 -07:00
Vinnie Falco b13e02bb55 Fix invalid iterator in test reporter
fix #755
2017-08-29 08:22:12 -07:00
Damian Jarek 96c53a048f Add Add test::stream::lowest_layer:
This allows the stream to be used as the next layer type in
a stack of network stream layers.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2017-08-28 22:16:23 -07:00
Vinnie Falco 30b98674d5 Refactor websocket stream: fixes and tests 2017-08-28 22:16:22 -07:00
Vinnie Falco 1d5b3f488e Refactor websocket stream members 2017-08-26 20:12:21 -07:00
Vinnie Falco 4c335a64cf Refactor stream open state variable 2017-08-26 20:12:04 -07:00
Vinnie Falco 526ecc5246 Set version to 109 2017-08-26 07:15:31 -07:00
Vinnie Falco 53fa8a6589 websocket test fixes 2017-08-26 07:15:25 -07:00
Vinnie Falco df7b068fa7 websocket read tests 2017-08-25 07:40:05 -07:00
Vinnie Falco 142b785119 split up websocket tests 2017-08-24 06:38:47 -07:00
Vinnie Falco 5ac51a1054 websocket write tests 2017-08-23 14:38:29 -07:00
Vinnie Falco 2697c26238 Fix websocket close_op resume state 2017-08-23 14:34:14 -07:00
Vinnie Falco 463accffd1 Refactor test::stream 2017-08-23 14:34:13 -07:00
Vinnie Falco 99822aebf5 websocket ping tests 2017-08-23 14:34:13 -07:00
Vinnie Falco 6809c18afa websocket handshake uses coroutine 2017-08-23 14:34:13 -07:00
Vinnie Falco 96eff81cea websocket close fixes and tests 2017-08-23 14:34:13 -07:00
Vinnie Falco 7e815435f6 websocket accept refactoring (API Change):
* stream overloads of accept which take both a message
  and a buffer sequence are removed.

Actions Required:

* Do not call websocket accept overloads which take
  both a message and a buffer sequence, as it is
  illegal per rfc6455.
2017-08-23 14:34:13 -07:00
Vinnie Falco 7a96dc4e11 Fix async_read_some handler signature 2017-08-23 14:34:13 -07:00
Vinnie Falco 0b83eb8e1e Add file to documentation 2017-08-23 12:02:32 -07:00
Vinnie Falco 359cbb1ce4 Set version to 108 2017-08-18 07:55:40 -07:00
Vinnie Falco 59d4b85e15 Don't use async_write_msg in examples
fix #746
2017-08-18 07:55:30 -07:00
Vinnie Falco 830e651f99 Fix argument parsing in HTTP examples
fix #746
2017-08-18 07:55:20 -07:00
Vinnie Falco b397718fbd Set version to 107 2017-08-16 18:27:06 -07:00
Vinnie Falco 2c73eeef7c Use test::stream 2017-08-16 18:26:48 -07:00
Vinnie Falco e690528132 Rename frame and header buffer types
fix #736
2017-08-15 16:59:17 -07:00
Vinnie Falco 3d6a009a96 Fix utf8 check for compressed frames 2017-08-15 16:33:25 -07:00
Vinnie Falco a435dde2a3 Fix done state for WebSocket reads 2017-08-15 12:49:02 -07:00
Vinnie Falco aabd33a677 Set version to 106 2017-08-15 07:01:01 -07:00
Vinnie Falco 76feb4afd4 Fix for basic_parser::skip(true) and docs
fix #742
2017-08-15 07:00:56 -07:00
Vinnie Falco f570593a01 Tidy up utf8_checker and tests 2017-08-14 15:41:35 -07:00
Vinnie Falco 66b657a85f Autobahn|Testsuite fixes 2017-08-14 15:41:31 -07:00
Vinnie Falco 5940002c96 Websocket close will automatically drain:
fix #642

This changes websocket::stream close and async_close to automatically
read and discard incoming message frames before shutting down the
connection. It is no longer necessary to manually drain the connection.
2017-08-14 15:41:11 -07:00
Vinnie Falco fa087e19f1 Refactor read_op + fail_op 2017-08-14 15:40:13 -07:00
Vinnie Falco 3652137718 Refactor close_op 2017-08-14 15:30:31 -07:00
Vinnie Falco 470ef85982 Refactor read_op 2017-08-14 15:30:30 -07:00
Vinnie Falco 91fb1c4b53 Refactor fail_op 2017-08-14 15:30:30 -07:00
Vinnie Falco a98e432a2a Refactor ping_op 2017-08-14 15:30:30 -07:00
Vinnie Falco 2b484c0b8b Refactor write_op 2017-08-14 15:30:30 -07:00
Vinnie Falco 0439114fd5 Remove obsolete write_op 2017-08-14 15:30:30 -07:00
Vinnie Falco ffd20b91f7 websocket test improvements 2017-08-14 15:30:29 -07:00
Vinnie Falco 4218a3a972 Add flat_static_buffer::reset 2017-08-14 15:30:28 -07:00
Vinnie Falco ad587e11b8 Fix typo in README.md 2017-08-14 15:30:17 -07:00
Vinnie Falco 3fe6cef129 Dynamic buffer input areas are mutable 2017-08-14 15:30:13 -07:00
Vinnie Falco d337339c02 Set version to 105 2017-08-10 18:32:24 -07:00
Vinnie Falco a56b390638 Tidy up Jamfile and tests 2017-08-10 18:32:21 -07:00