utilmm::server_socket Class Reference
[OS-related tools]

#include <utilmm/system/socket.hh>

Inheritance diagram for utilmm::server_socket:

utilmm::base_socket

List of all members.

Public Member Functions

 server_socket (Domain domain, Type type, std::string const &bind_to, int backlog=256)
void bind (std::string const &to)
socketaccept () const
bool try_wait () const
void wait () const


Detailed Description

A socket class holding servers (i.e. listening sockets)

Constructor & Destructor Documentation

utilmm::server_socket::server_socket ( Domain  domain,
Type  type,
std::string const &  bind_to,
int  backlog = 256 
)


Member Function Documentation

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

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

void utilmm::server_socket::wait (  )  const

Waits for an incoming connection


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page