CAsyncFileWriter::Callback Class Reference
[Asynchronous I/OFileIO]

Inheritance diagram for CAsyncFileWriter::Callback:

Inheritance graph
[legend]

List of all members.


Detailed Description

An interface for users of the CAsyncFileWriter to be notified of any errors that occur during the asynchronous write operations on the file.

Public Member Functions

virtual void OnError (CAsyncFileWriter *pInstance, const JetByteTools::Win32::_tstring &where, const DWORD lastError)=0
 Called when an error occurs during asynchronous processing or file closure.
virtual void OnError (CAsyncFileWriter *pInstance, const JetByteTools::Win32::_tstring &where, const JetByteTools::Win32::_tstring &message)=0
 Called when an error occurs during asynchronous processing or file closure.
virtual void OnLastWrite (CAsyncFileWriter *pInstance)=0
 Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation.

Protected Member Functions

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

Constructor & Destructor Documentation

~Callback (  )  [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 OnError ( CAsyncFileWriter pInstance,
const JetByteTools::Win32::_tstring where,
const DWORD  lastError 
) [pure virtual]

Called when an error occurs during asynchronous processing or file closure.

virtual void OnError ( CAsyncFileWriter pInstance,
const JetByteTools::Win32::_tstring where,
const JetByteTools::Win32::_tstring message 
) [pure virtual]

Called when an error occurs during asynchronous processing or file closure.

virtual void OnLastWrite ( CAsyncFileWriter pInstance  )  [pure virtual]

Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation.


Generated on Thu Mar 26 16:39:23 2009 for JetByte Socket Tools - v6.0 by  doxygen 1.5.3