Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
basic_socket()
Constructor.
basic_socket * open()
Open the socket.
basic_socket * close()
Close the socket.
bool is_open() const
Tell if the socket is open.
socket_traits::descriptor m_descriptor
File descriptor.
static descriptor open()
Open a socket.
static const descriptor invalid_socket
Invalid socket descriptor.
static bool close(descriptor d)
Close a socket.
static bool valid_descriptor(descriptor d)
Tell if a descriptor is a valid socket descriptor.