#include <cabal_ssocket.h>
Inheritance diagram for Cabal::ServerSocket:
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 ) | |
TCPSocket * | accept () |
Accepts incoming connections. |
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.
|
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.
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(). |