Update for Net-TS Asio (API Change):

fix #769

The following classes are removed:

* handler_type
* async_result
* async_completion
* is_dynamic_buffer
* is_const_buffer_sequence
* is_mutable_buffer_sequence
* handler_alloc

Actions Required:

* Use BOOST_ASIO_HANDLER_TYPE instead of handler_type
* Use BOOST_ASIO_INITFN_RESULT_TYPE instead of async_result
* Use boost::asio::async_completion
* Use boost::asio::is_dynamic_buffer
* Use boost::asio::is_const_buffer_sequence
* Use boost::asio::is_mutable_buffer_sequence
* boost::asio::associated_allocator_t replaces handler_alloc
This commit is contained in:
Vinnie Falco
2017-10-23 17:11:27 -07:00
parent 9dc9ca13b9
commit 3a28e999af
173 changed files with 3214 additions and 4138 deletions
+8 -8
View File
@@ -70,7 +70,7 @@ public:
// request in stream, oversized
{
stream<test::stream> ws{ios_,
stream<test::stream> ws{ioc_,
"GET / HTTP/1.1\r\n"
"Host: localhost\r\n"
"Upgrade: websocket\r\n"
@@ -115,7 +115,7 @@ public:
// request in stream, decorator, oversized
{
stream<test::stream> ws{ios_,
stream<test::stream> ws{ioc_,
"GET / HTTP/1.1\r\n"
"Host: localhost\r\n"
"Upgrade: websocket\r\n"
@@ -158,7 +158,7 @@ public:
// request in buffers, oversize
{
stream<test::stream> ws{ios_};
stream<test::stream> ws{ioc_};
auto tr = connect(ws.next_layer());
try
{
@@ -202,7 +202,7 @@ public:
// request in buffers, decorator, oversized
{
stream<test::stream> ws{ios_};
stream<test::stream> ws{ioc_};
auto tr = connect(ws.next_layer());
try
{
@@ -248,7 +248,7 @@ public:
// request in buffers and stream, oversized
{
stream<test::stream> ws{ios_,
stream<test::stream> ws{ioc_,
"Connection: upgrade\r\n"
"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n"
"Sec-WebSocket-Version: 13\r\n"
@@ -294,7 +294,7 @@ public:
// request in buffers and stream, decorator, oversize
{
stream<test::stream> ws{ios_,
stream<test::stream> ws{ioc_,
"Connection: upgrade\r\n"
"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n"
"Sec-WebSocket-Version: 13\r\n"
@@ -415,7 +415,7 @@ public:
// Closed by client
{
stream<test::stream> ws{ios_};
stream<test::stream> ws{ioc_};
auto tr = connect(ws.next_layer());
tr.close();
try
@@ -466,7 +466,7 @@ public:
n = s.size() - 1;
break;
}
stream<test::stream> ws{ios_};
stream<test::stream> ws{ioc_};
auto tr = connect(ws.next_layer());
ws.next_layer().append(
s.substr(n, s.size() - n));