network
Class CServerSocket
CSocketBase
|
+--CServerSocket
in Network.h
in ServerSocket.cpp
- Direct Known Subclasses:
- CNetServer
- class CServerSocket
- extends CSocketBase
Method Summary |
virtual void |
OnAccept( const CSocketAddress& )= 0
There is an incoming connection in the queue. |
protected void |
OnClose( PS_RESULT UNUSED( errorCode ) )
|
protected virtual void |
OnRead()
The default implementation of this method accepts an incoming connection
and calls OnAccept() with the accepted internal socket instance. |
protected virtual void |
OnWrite()
|
Methods inherited from class CSocketBase |
Shutdown, Initialize, Close, Destroy, SetNonBlocking, SetTcpNoDelay, Read, Write, Connect, Bind, PreAccept, Accept, Reject, GetOpMask, SetOpMask, GetProtocol, IsNonBlocking, GetErrorState, GetState, GetRemoteAddress, OnRead, OnWrite, OnClose |
~CServerSocket
public virtual ~CServerSocket();
OnAccept
public virtual void OnAccept( const CSocketAddress& )= 0;
- There is an incoming connection in the queue. Examine the SocketAddress
and call Accept() or Reject() to accept or reject the incoming
connection
- See Also:
CSocketBase::Accept()
, CSocketBase::Reject()
OnClose
protected void OnClose( PS_RESULT UNUSED( errorCode ) );
OnRead
protected virtual void OnRead();
- The default implementation of this method accepts an incoming connection
and calls OnAccept() with the accepted internal socket instance.
NOTE: Subclasses should never overload this method, overload OnAccept()
instead.
OnWrite
protected virtual void OnWrite();