![]() |
Kea 3.0.0
|
Functor associated with the socket object. More...
#include <ping_channel.h>
Public Member Functions | |
| SocketCallback (SocketCallbackFunction socket_callback) | |
| Constructor. | |
| void | operator() (boost::system::error_code ec, size_t length=0) |
| Operator called when event associated with a socket occurs. | |
Functor associated with the socket object.
This functor calls a callback function specified in the constructor.
Definition at line 33 of file ping_channel.h.
|
inlineexplicit |
Constructor.
| socket_callback | Callback to be invoked by the functor upon an event associated with the socket. |
Definition at line 39 of file ping_channel.h.
|
inline |
Operator called when event associated with a socket occurs.
This operator returns immediately when received boost::system::error_code is equal to boost::asio::error::operation_aborted.
| ec | Error code. |
| length | Data length. |
Definition at line 50 of file ping_channel.h.