libcaf
0.15.5
|
A concrete acceptor with a technology-dependent policy. More...
#include <default_multiplexer.hpp>
Public Member Functions | |
template<class... Ts> | |
acceptor_impl (default_multiplexer &mpx, native_socket sockfd, Ts &&... xs) | |
void | handle_event (io::network::operation op) override |
Returns true once the requested operation is done, i.e., to signalize the multiplexer to remove this handler. More... | |
![]() | |
acceptor (default_multiplexer &backend_ref, native_socket sockfd) | |
native_socket & | accepted_socket () |
Returns the accepted socket. More... | |
void | start (acceptor_manager *mgr) |
Starts this acceptor, forwarding all incoming connections to manager . More... | |
void | activate (acceptor_manager *mgr) |
Activates the acceptor. | |
void | stop_reading () |
Closes the network connection and removes this handler from its parent. | |
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... | |
![]() | |
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 | |
![]() | |
using | manager_type = acceptor_manager |
A manager providing the accept member function. | |
using | manager_ptr = intrusive_ptr< manager_type > |
A smart pointer to an acceptor manager. | |
![]() | |
template<class Policy > | |
void | handle_event_impl (io::network::operation op, Policy &policy) |
![]() | |
void | activate () |
Adds the file descriptor to the event loop of the parent. | |
void | set_fd_flags () |
![]() | |
int | eventbf_ |
native_socket | fd_ |
bool | read_channel_closed_ |
default_multiplexer & | backend_ |
A concrete acceptor with a technology-dependent policy.
|
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.