$search

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

#include <socket.hh>

Inheritance diagram for utilmm::server_socket:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

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 
)

Definition at line 195 of file socket.cc.


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  ) 

Definition at line 203 of file socket.cc.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:52 2013