JetByteTools::IO::IHandler Class Reference
[InterfacesI/O BuffersProtected non-virtual destructors on abstract base classes]

Inherited by JetByteTools::IO::CAsyncFileReader [private], JetByteTools::IO::CAsyncFileWriter [private], JetByteTools::Socket::CDatagramSocketServer [private], JetByteTools::Socket::CStreamSocketServerEx [private], JetByteTools::Socket::IDatagramServerSocketEx, JetByteTools::Socket::IDatagramSocketEx, and JetByteTools::Socket::IStreamSocketEx.

Inheritance diagram for JetByteTools::IO::IHandler:

Inheritance graph
[legend]
List of all members.

Detailed Description

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


Public Member Functions

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

Protected Member Functions

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


Constructor & Destructor Documentation

JetByteTools::IO::IHandler::~IHandler (  )  [inline, protected]

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


Member Function Documentation

virtual void JetByteTools::IO::IHandler::OnError ( const DWORD  lastError  )  [pure virtual]

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

Implemented in JetByteTools::Socket::CDatagramSocketServer.

virtual void JetByteTools::IO::IHandler::HandleOperation ( IBuffer pBuffer,
DWORD  dwIoSize,
DWORD  lastError 
) [pure virtual]

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

Implemented in JetByteTools::Socket::CDatagramSocketServer, JetByteTools::Socket::TAsyncSocket< IPoolableStreamSocket, IStreamSocketConnectionManager, IStreamSocketCallback >, JetByteTools::Socket::TAsyncSocket< IPoolableDatagramServerSocket, IDatagramServerSocketConnectionManager, IDatagramServerSocketCallback >, and JetByteTools::Socket::TAsyncSocket< IPoolableDatagramSocket, IDatagramSocketConnectionManager, IDatagramSocketCallback >.


Generated on Tue May 8 17:47:55 2007 for JetByte Socket Tools by  doxygen 1.5.2