NCL Library
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
CTCPSvrSocket Class Reference

#include <TCPSvrSocket.hpp>

Inheritance diagram for CTCPSvrSocket:
CTCPSocket CSocket

List of all members.

Public Member Functions

 CTCPSvrSocket (Mode eMode=BLOCK)
virtual ~CTCPSvrSocket ()
uint Port () const
void Listen (uint nPort, uint nBackLog=SOMAXCONN)
bool CanAccept () const
CTCPCltSocketAccept ()
void Accept (CTCPCltSocket *pCltSocket)
void AddServerListener (IServerSocketListener *pListener)
void RemoveServerListener (IServerSocketListener *pListener)

Protected Types

typedef std::vector
< IClientSocketListener * > 
CCltListeners
 The collection of socket event handlers.
typedef std::vector
< IServerSocketListener * > 
CSvrListeners

Protected Member Functions

virtual void OnAsyncSelect (int nEvent, int nError)
virtual void OnAcceptReady ()
virtual void OnClosed (int nReason)
virtual void OnError (int nEvent, int nError)
CTCPCltSocketAllocCltSocket ()

Protected Attributes

CSvrListeners m_aoSvrListeners

Member Typedef Documentation

typedef std::vector<IClientSocketListener*> CTCPSvrSocket::CCltListeners [protected]

The collection of socket event handlers.

Reimplemented from CSocket.

typedef std::vector<IServerSocketListener*> CTCPSvrSocket::CSvrListeners [protected]

Constructor & Destructor Documentation


Member Function Documentation

uint CTCPSvrSocket::Port ( ) const [inline]
void CTCPSvrSocket::Listen ( uint  nPort,
uint  nBackLog = SOMAXCONN 
)
bool CTCPSvrSocket::CanAccept ( ) const
void CTCPSvrSocket::Accept ( CTCPCltSocket pCltSocket)
void CTCPSvrSocket::OnAsyncSelect ( int  nEvent,
int  nError 
) [protected, virtual]

Reimplemented from CSocket.

void CTCPSvrSocket::OnAcceptReady ( ) [protected, virtual]
void CTCPSvrSocket::OnClosed ( int  nReason) [protected, virtual]

Reimplemented from CSocket.

void CTCPSvrSocket::OnError ( int  nEvent,
int  nError 
) [protected, virtual]

Reimplemented from CSocket.


Member Data Documentation


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