#include <utilmm/system/socket.hh>
Public Member Functions | |
server_socket (Domain domain, Type type, std::string const &bind_to, int backlog=256) | |
void | bind (std::string const &to) |
socket * | accept () const |
bool | try_wait () const |
void | wait () const |
utilmm::server_socket::server_socket | ( | Domain | domain, | |
Type | type, | |||
std::string const & | bind_to, | |||
int | backlog = 256 | |||
) |
void utilmm::server_socket::bind | ( | std::string const & | to | ) |
socket* utilmm::server_socket::accept | ( | ) | const |
Waits for an incoming connection If block is true, wait for a connection. If it is false, do not block and return NULL if there is no connection available
bool utilmm::server_socket::try_wait | ( | ) | const |
void utilmm::server_socket::wait | ( | ) | const |
Waits for an incoming connection