31 #include <sys/types.h> 51 open(port, queue_size);
102 claw::net::socket_server::operator bool()
const Class used to receive incoming connections.
basic_socket * open()
Open the socket.
static bool init()
Initialize the use of the socket library.
static bool release()
Close the socket library.
socket_traits::descriptor m_descriptor
File descriptor.
basic_socket * close()
Close the socket.
static bool init()
Initialize the use of the socket library.
bool is_open() const
Tell if the socket is open.
socket_server * close()
Close the socket.
socket_server()
Constructor.
Class used to receive incoming connections.
static bool listen(descriptor d, int port, unsigned int queue_size)
Open a socket for incoming connexions.
bool is_open() const
Tell if the server is open.
static bool release()
Close the socket library.