Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

network
Class CServerSocket

CSocketBase
   |
   +--CServerSocket

   in Network.h
   in ServerSocket.cpp
Direct Known Subclasses:
CNetServer

class CServerSocket
extends CSocketBase


Constructor Summary
virtual ~CServerSocket()
          
 
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
 

Constructor Detail

~CServerSocket

public virtual ~CServerSocket();


Method Detail

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();

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD