|
libcaf
0.15.5
|
An event handler for the internal event pipe. More...
#include <default_multiplexer.hpp>
Public Member Functions | |
| pipe_reader (default_multiplexer &dm) | |
| void | removed_from_loop (operation op) override |
Callback to signalize that this handler has been removed from the event loop for operations of type op. More... | |
| void | handle_event (operation op) override |
| Returns true once the requested operation is done, i.e., to signalize the multiplexer to remove this handler. More... | |
| void | init (native_socket sock_fd) |
| resumable * | try_read_next () |
Public Member Functions inherited from caf::io::network::event_handler | |
| event_handler (default_multiplexer &dm, native_socket sockfd) | |
| native_socket | fd () const |
| 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. | |
| bool | read_channel_closed () const |
Checks whether close_read has been called. | |
| void | close_read_channel () |
| Closes the read channel of the underlying socket. | |
| void | passivate () |
| Removes the file descriptor from the event loop of the parent. | |
Additional Inherited Members | |
Protected Member Functions inherited from caf::io::network::event_handler | |
| void | activate () |
| Adds the file descriptor to the event loop of the parent. | |
| void | set_fd_flags () |
Protected Attributes inherited from caf::io::network::event_handler | |
| int | eventbf_ |
| native_socket | fd_ |
| bool | read_channel_closed_ |
| default_multiplexer & | backend_ |
An event handler for the internal event pipe.
|
overridevirtual |
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.
Implements caf::io::network::event_handler.
|
overridevirtual |
Callback to signalize that this handler has been removed from the event loop for operations of type op.
Implements caf::io::network::event_handler.
1.8.14