Public Member Functions
utilmm::server_socket Class Reference

#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

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.

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.

Waits for an incoming connection

Definition at line 210 of file socket.cc.


The documentation for this class was generated from the following files:


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:31