An event-driven socket. More...
Inherits ioxx::dispatch::socket.
Public Member Functions | |
socket (core &io, native_socket_t sock, handler const &f=handler(), event_set ev=socket::no_events) | |
Register a socket in the i/o event dispatcher. |
An event-driven socket.
ioxx::core< Allocator >::socket::socket | ( | core & | io, | |
native_socket_t | sock, | |||
handler const & | f = handler() , |
|||
event_set | ev = socket::no_events | |||
) |
Register a socket in the i/o event dispatcher.
io | The core object to register this socket in. | |
sock | The native socket. | |
ev | Event set to wait for. | |
f | Callback function to invoke when an event occurs. |