mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
Use std::bind for control_callback
This commit is contained in:
@@ -261,9 +261,11 @@ public:
|
|||||||
// Set the control callback. This will be called
|
// Set the control callback. This will be called
|
||||||
// on every incoming ping, pong, and close frame.
|
// on every incoming ping, pong, and close frame.
|
||||||
derived().ws().control_callback(
|
derived().ws().control_callback(
|
||||||
beast::bind_front_handler(
|
std::bind(
|
||||||
&websocket_session::on_control_callback,
|
&websocket_session::on_control_callback,
|
||||||
this));
|
this,
|
||||||
|
std::placeholders::_1,
|
||||||
|
std::placeholders::_2));
|
||||||
|
|
||||||
// VFALCO What about the timer?
|
// VFALCO What about the timer?
|
||||||
|
|
||||||
|
@@ -243,9 +243,11 @@ public:
|
|||||||
// Set the control callback. This will be called
|
// Set the control callback. This will be called
|
||||||
// on every incoming ping, pong, and close frame.
|
// on every incoming ping, pong, and close frame.
|
||||||
ws_.control_callback(
|
ws_.control_callback(
|
||||||
beast::bind_front_handler(
|
std::bind(
|
||||||
&websocket_session::on_control_callback,
|
&websocket_session::on_control_callback,
|
||||||
this));
|
this,
|
||||||
|
std::placeholders::_1,
|
||||||
|
std::placeholders::_2));
|
||||||
|
|
||||||
// Run the timer. The timer is operated
|
// Run the timer. The timer is operated
|
||||||
// continuously, this simplifies the code.
|
// continuously, this simplifies the code.
|
||||||
|
Reference in New Issue
Block a user