Tanl Linguistic Pipeline

IXE::io::ServerSocket Class Reference

Server socket. More...

#include <ServerSocket.h>

Inheritance diagram for IXE::io::ServerSocket:
IXE::io::AbstractSocket

List of all members.

Public Member Functions

 ServerSocket (int port, int backLog=10)
 Creates a server socket and binds it to the specified local port number, with the specified backlog.
 ServerSocket (ServerSocket const &other)
 Copy constructor.
ServerSocketoperator= (const ServerSocket &rhs)
Socket accept ()
 Listens for a connection to be made to this socket and accepts it.
SOCKET filedes ()

Detailed Description

Server socket.

A server socket is used to wait for requests to come in over the network.


Member Function Documentation

Socket IXE::io::ServerSocket::accept (  ) 

Listens for a connection to be made to this socket and accepts it.

Returns:
a newly created Socket, whose state is not open if an I/O error occured when waiting for a connection (This is to avoid requiring caller to use try/catch).
SOCKET IXE::io::ServerSocket::filedes (  )  [inline]
Returns:
the file descriptor associated to the socket.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.