30 #ifndef __CLAW_SOCKET_SERVER_HPP__ 31 #define __CLAW_SOCKET_SERVER_HPP__ 51 socket_server(
int port,
unsigned int queue_size = s_default_queue_size );
54 unsigned int queue_size = s_default_queue_size );
59 operator bool()
const;
61 template <
typename SocketStream>
62 void accept( SocketStream& sock,
int time_limit );
69 static const unsigned int s_default_queue_size = 16;
75 #include <claw/impl/socket_server.tpp> 77 #endif // __CLAW_SOCKET_SERVER_HPP__ Class used to receive incoming connections.
basic_socket * open()
Open the socket.
A class to use any socket as a classic standard input stream.
static bool init()
Initialize the use of the socket library.
static bool release()
Close the socket library.
A class to use any socket as a classic standard output stream.
Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
A class to use any socket as a classic standard stream.
socket_server * close()
Close the socket.
socket_server()
Constructor.
Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
bool is_open() const
Tell if the server is open.
This is the main namespace.