NCL Library
|
#include <TCPSvrSocket.hpp>
Public Member Functions | |
CTCPSvrSocket (Mode eMode=BLOCK) | |
virtual | ~CTCPSvrSocket () |
uint | Port () const |
void | Listen (uint nPort, uint nBackLog=SOMAXCONN) |
bool | CanAccept () const |
CTCPCltSocket * | Accept () |
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) |
CTCPCltSocket * | AllocCltSocket () |
Protected Attributes | |
CSvrListeners | m_aoSvrListeners |
typedef std::vector<IClientSocketListener*> CTCPSvrSocket::CCltListeners [protected] |
The collection of socket event handlers.
Reimplemented from CSocket.
typedef std::vector<IServerSocketListener*> CTCPSvrSocket::CSvrListeners [protected] |
CTCPSvrSocket::CTCPSvrSocket | ( | Mode | eMode = BLOCK | ) |
CTCPSvrSocket::~CTCPSvrSocket | ( | ) | [virtual] |
uint CTCPSvrSocket::Port | ( | ) | const [inline] |
void CTCPSvrSocket::Listen | ( | uint | nPort, |
uint | nBackLog = SOMAXCONN |
||
) |
bool CTCPSvrSocket::CanAccept | ( | ) | const |
void CTCPSvrSocket::Accept | ( | CTCPCltSocket * | pCltSocket | ) |
void CTCPSvrSocket::AddServerListener | ( | IServerSocketListener * | pListener | ) |
void CTCPSvrSocket::RemoveServerListener | ( | IServerSocketListener * | pListener | ) |
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.
CTCPCltSocket * CTCPSvrSocket::AllocCltSocket | ( | ) | [protected] |
CSvrListeners CTCPSvrSocket::m_aoSvrListeners [protected] |