mirror of
https://github.com/boostorg/beast.git
synced 2025-08-05 15:54:46 +02:00
committed by
Klemens Morgenstern
parent
668dcf51c1
commit
2952b670d8
@@ -325,15 +325,15 @@ pong(ping_data const& payload, error_code& ec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class NextLayer, bool deflateSupported>
|
template<class NextLayer, bool deflateSupported>
|
||||||
template<BOOST_BEAST_ASYNC_TPARAM1 WriteHandler>
|
template<BOOST_BEAST_ASYNC_TPARAM1 PingHandler>
|
||||||
BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
|
BOOST_BEAST_ASYNC_RESULT1(PingHandler)
|
||||||
stream<NextLayer, deflateSupported>::
|
stream<NextLayer, deflateSupported>::
|
||||||
async_ping(ping_data const& payload, WriteHandler&& handler)
|
async_ping(ping_data const& payload, PingHandler&& handler)
|
||||||
{
|
{
|
||||||
static_assert(is_async_stream<next_layer_type>::value,
|
static_assert(is_async_stream<next_layer_type>::value,
|
||||||
"AsyncStream type requirements not met");
|
"AsyncStream type requirements not met");
|
||||||
return net::async_initiate<
|
return net::async_initiate<
|
||||||
WriteHandler,
|
PingHandler,
|
||||||
void(error_code)>(
|
void(error_code)>(
|
||||||
run_ping_op{},
|
run_ping_op{},
|
||||||
handler,
|
handler,
|
||||||
@@ -343,15 +343,15 @@ async_ping(ping_data const& payload, WriteHandler&& handler)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class NextLayer, bool deflateSupported>
|
template<class NextLayer, bool deflateSupported>
|
||||||
template<BOOST_BEAST_ASYNC_TPARAM1 WriteHandler>
|
template<BOOST_BEAST_ASYNC_TPARAM1 PongHandler>
|
||||||
BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
|
BOOST_BEAST_ASYNC_RESULT1(PongHandler)
|
||||||
stream<NextLayer, deflateSupported>::
|
stream<NextLayer, deflateSupported>::
|
||||||
async_pong(ping_data const& payload, WriteHandler&& handler)
|
async_pong(ping_data const& payload, PongHandler&& handler)
|
||||||
{
|
{
|
||||||
static_assert(is_async_stream<next_layer_type>::value,
|
static_assert(is_async_stream<next_layer_type>::value,
|
||||||
"AsyncStream type requirements not met");
|
"AsyncStream type requirements not met");
|
||||||
return net::async_initiate<
|
return net::async_initiate<
|
||||||
WriteHandler,
|
PongHandler,
|
||||||
void(error_code)>(
|
void(error_code)>(
|
||||||
run_ping_op{},
|
run_ping_op{},
|
||||||
handler,
|
handler,
|
||||||
|
@@ -1762,13 +1762,13 @@ public:
|
|||||||
so that only closing it is guaranteed to succeed.
|
so that only closing it is guaranteed to succeed.
|
||||||
*/
|
*/
|
||||||
template<
|
template<
|
||||||
BOOST_BEAST_ASYNC_TPARAM1 WriteHandler =
|
BOOST_BEAST_ASYNC_TPARAM1 PingHandler =
|
||||||
net::default_completion_token_t<executor_type>
|
net::default_completion_token_t<executor_type>
|
||||||
>
|
>
|
||||||
BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
|
BOOST_BEAST_ASYNC_RESULT1(PingHandler)
|
||||||
async_ping(
|
async_ping(
|
||||||
ping_data const& payload,
|
ping_data const& payload,
|
||||||
WriteHandler&& handler =
|
PingHandler&& handler =
|
||||||
net::default_completion_token_t<
|
net::default_completion_token_t<
|
||||||
executor_type>{});
|
executor_type>{});
|
||||||
|
|
||||||
@@ -1885,13 +1885,13 @@ public:
|
|||||||
so that only closing it is guaranteed to succeed.
|
so that only closing it is guaranteed to succeed.
|
||||||
*/
|
*/
|
||||||
template<
|
template<
|
||||||
BOOST_BEAST_ASYNC_TPARAM1 WriteHandler =
|
BOOST_BEAST_ASYNC_TPARAM1 PongHandler =
|
||||||
net::default_completion_token_t<executor_type>
|
net::default_completion_token_t<executor_type>
|
||||||
>
|
>
|
||||||
BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
|
BOOST_BEAST_ASYNC_RESULT1(PongHandler)
|
||||||
async_pong(
|
async_pong(
|
||||||
ping_data const& payload,
|
ping_data const& payload,
|
||||||
WriteHandler&& handler =
|
PongHandler&& handler =
|
||||||
net::default_completion_token_t<
|
net::default_completion_token_t<
|
||||||
executor_type>{});
|
executor_type>{});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user