ioxx::core< Allocator >::socket Class Reference

An event-driven socket. More...

Inherits ioxx::dispatch::socket.

List of all members.

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.

Detailed Description

template<class Allocator = std::allocator<void>>
class ioxx::core< Allocator >::socket

An event-driven socket.


Constructor & Destructor Documentation

template<class Allocator = std::allocator<void>>
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.

Parameters:
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.
Generated on Mon Mar 1 18:42:38 2010 for ioxx by  doxygen 1.6.3