#include <unix_buffer.H>
Public Member Functions | |
connection_waiter (const int server_port, int server_port_tries=10, const int _client_default_timeout=75) | |
~connection_waiter () | |
closes the server socket | |
int | get_new_client_socket_descriptor () const |
int | get_client_default_timeout () const |
Protected Member Functions | |
virtual int | _get_descriptor () const |
Protected Attributes | |
int | server_socket |
const int | client_default_timeout |
Definition at line 670 of file unix_buffer.H.
connection_waiter::connection_waiter | ( | const int | server_port, | |
int | server_port_tries = 10 , |
|||
const int | _client_default_timeout = 75 | |||
) | [inline, explicit] |
tries to open the given server port for incoming client connections
server_port | server port to listen for new connections | |
server_port_tries | (optional) number of tries to establish the server socket before giving up | |
_client_default_timeout | (optional) default timeout in seconds for client connections (to automate/ease unix_buffer initializations) |
Definition at line 686 of file unix_buffer.H.
connection_waiter::~connection_waiter | ( | ) | [inline] |
virtual int connection_waiter::_get_descriptor | ( | ) | const [inline, protected, virtual] |
Implements Cprovide_descriptor_access.
Definition at line 676 of file unix_buffer.H.
References server_socket.
int connection_waiter::get_new_client_socket_descriptor | ( | ) | const [inline] |
waits for a new client connection an returns a socket descriptor
Definition at line 709 of file unix_buffer.H.
Referenced by main(), and CXML_StatusServer::THREAD_XML_StatusServer().
int connection_waiter::get_client_default_timeout | ( | ) | const [inline] |
Definition at line 724 of file unix_buffer.H.
int connection_waiter::server_socket [protected] |
const int connection_waiter::client_default_timeout [protected] |
Definition at line 674 of file unix_buffer.H.