The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IHandler Class Reference
[InterfacesI/O BuffersProtected destructors on abstract base classes]

Inheritance diagram for IHandler:

List of all members.


Detailed Description

An interface that represents code that handles operations on I/O buffers.

Public Member Functions

virtual void OnError (DWORD lastError)=0
 Called when an error has occurred before the operation can be handled.
virtual void HandleOperation (IBuffer *pBuffer, DWORD ioSize, DWORD lastError)=0
 Called when a buffer has an operation that needs to be handled.
virtual DWORD GetError (const OVERLAPPED &overlapped)=0

Protected Member Functions

virtual ~IHandler ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Static Protected Member Functions

static DWORD GetError (HANDLE handle, const OVERLAPPED &overlapped)

Constructor & Destructor Documentation

virtual ~IHandler (  )  [protected, virtual]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual void OnError ( DWORD  lastError  )  [pure virtual]

Called when an error has occurred before the operation can be handled.

Implemented in TDatagramSocketServer.

virtual void HandleOperation ( IBuffer *  pBuffer,
DWORD  ioSize,
DWORD  lastError 
) [pure virtual]

Called when a buffer has an operation that needs to be handled.

DWORD GetError ( HANDLE  handle,
const OVERLAPPED overlapped 
) [static, protected]


Generated on Sun Sep 12 19:09:28 2021 for The Server Framework - v7.4 by doxygen 1.5.3