|
libcaf
0.14.4
|
A socket IO event handler. More...
#include <default_multiplexer.hpp>
Public Member Functions | |
| event_handler (default_multiplexer &dm) | |
| virtual void | handle_event (operation op)=0 |
| Returns true once the requested operation is done, i.e., to signalize the multiplexer to remove this handler. More... | |
| virtual void | removed_from_loop (operation op)=0 |
Callback to signalize that this handler has been removed from the event loop for operations of type op. More... | |
| virtual native_socket | fd () const =0 |
| Returns the native socket handle for this handler. | |
| default_multiplexer & | backend () |
Returns the multiplexer this acceptor belongs to. | |
| int | eventbf () const |
| Returns the bit field storing the subscribed events. | |
| void | eventbf (int value) |
| Sets the bit field storing the subscribed events. | |
Protected Attributes | |
| default_multiplexer & | backend_ |
| int | eventbf_ |
A socket IO event handler.
|
pure virtual |
Returns true once the requested operation is done, i.e., to signalize the multiplexer to remove this handler.
The handler remains in the event loop as long as it returns false.
Implemented in caf::io::network::acceptor< SocketAcceptor >, and caf::io::network::stream< Socket >.
|
pure virtual |
Callback to signalize that this handler has been removed from the event loop for operations of type op.
Implemented in caf::io::network::acceptor< SocketAcceptor >, and caf::io::network::stream< Socket >.
1.8.9.1