Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Cabal::ServerSocket Class Reference

TCP Server Socket encapsulation class. More...

#include <cabal_ssocket.h>

Inheritance diagram for Cabal::ServerSocket:

Inheritance graph
[legend]
Collaboration diagram for Cabal::ServerSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ServerSocket (const Address &local, int timeout=-1, int incomingMax=0) throw ( InitError )
 ServerSocket (const char *ip, const int port, int timeout=-1, int incomingMax=0) throw ( InitError )
 ServerSocket (const std::string &ip, const int port, int timeout=-1, int incomingMax=0) throw ( InitError )
TCPSocketaccept ()
 Accepts incoming connections.


Detailed Description

TCP Server Socket encapsulation class.

This class encapsulates the behavior of a TCP server socket, being able to accept new incoming connections.

By calling the accept() method, the caller will receive a new socket object that will be able to communicate with the incoming remote host.

Definition at line 30 of file cabal_ssocket.h.


Member Function Documentation

TCPSocket * Cabal::ServerSocket::accept  ) 
 

Accepts incoming connections.

Blocks until a new connections arrives. In case of error, or in case the timeout on this socket expires, it returns 0.

See also:
Cabal::Socket::timeout( int );
Returns:
a new socket bound to an incoming host or 0 on error/timeout.

Definition at line 62 of file ltlib/cabal_ssocket.cpp.

References Cabal::Address::copy(), Cabal::Socket::m_local, Cabal::Socket::m_remote, Cabal::Socket::m_skCom, and Cabal::Address::set().


The documentation for this class was generated from the following files:
Generated on Sat Apr 10 17:41:49 2004 for Cabal by doxygen 1.3.5