utilmm::server_socket Class Reference
[OS-related tools]
#include <socket.hh>
List of all members.
Detailed Description
A socket class holding servers (i.e. listening sockets)
Definition at line 109 of file socket.hh.
Constructor & Destructor Documentation
utilmm::server_socket::server_socket |
( |
Domain |
domain, |
|
|
Type |
type, |
|
|
std::string const & |
bind_to, |
|
|
int |
backlog = 256 | |
|
) |
| | |
Member Function Documentation
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
Definition at line 215 of file socket.cc.
void utilmm::server_socket::bind |
( |
std::string const & |
to |
) |
|
bool utilmm::server_socket::try_wait |
( |
|
) |
const |
Checks if there is an incoming connection in the connection queue.
- Returns:
- true if it is the case (i.e. accept() will return a socket) and false otherwise
Definition at line 212 of file socket.cc.
void utilmm::server_socket::wait |
( |
|
) |
const |
Waits for an incoming connection
Definition at line 210 of file socket.cc.
The documentation for this class was generated from the following files: