30#ifndef __CLAW_SOCKET_SERVER_HPP__
31#define __CLAW_SOCKET_SERVER_HPP__
52 socket_server(
int port,
unsigned int queue_size = s_default_queue_size);
55 unsigned int queue_size = s_default_queue_size);
60 operator bool()
const;
62 template <
typename SocketStream>
63 void accept(SocketStream& sock,
int time_limit);
70 static const unsigned int s_default_queue_size = 16;
76#include <claw/net/socket_server.tpp>
Common interface for claw::net::basic_socketbuf and claw::net::socket_server.
basic_socket()
Constructor.
basic_socket * open()
Open the socket.
static bool release()
Close the socket library.
static bool init()
Initialize the use of the socket library.
socket_server()
Constructor.
socket_server * close()
Close the socket.
bool is_open() const
Tell if the server is open.
A class to use any socket as a classic standard input stream.
This is the main namespace.
A class to use any socket as a classic standard output stream.
A class to use any socket as a classic standard stream.