Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CAsyncSocketCallback Class Reference

Asynchronous socket callback object. More...

#include <AsyncSocket.h>

Inheritance diagram for OW32::CAsyncSocketCallback:

OW32::CHTTP OW32::CMessageListener List of all members.

Public Member Functions

virtual void onReadCompletion (BOOL, DWORD)
 Called when a read has completed.
virtual void onSendCompletion (BOOL, DWORD)
 Called when a send has completed.
virtual void onTransmitFileCompletion (BOOL, DWORD)
 Called when transmitFile has completed.
virtual void onConnectCompletion (BOOL)
 Called when a connect() attempt has completed.
virtual void onCloseCompletion (BOOL)
 Called when a socket has been closed.
virtual void onAcceptCompletion (BOOL)
 Called when an accept() has completed.
virtual void onTimeout ()
 Called when the network idle timeout has been reached.
virtual void onAllNotificationsProcessed ()
 Called when all outstanding notifications have been processed.

Detailed Description

Asynchronous socket callback object.


Member Function Documentation

virtual void OW32::CAsyncSocketCallback::onAcceptCompletion BOOL   )  [inline, virtual]
 

Called when an accept() has completed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the accept.

Reimplemented in OW32::CMessageListener.

virtual void OW32::CAsyncSocketCallback::onAllNotificationsProcessed  )  [inline, virtual]
 

Called when all outstanding notifications have been processed.

After this has been called, you can assume that no further notifications will be made to the callback.

virtual void OW32::CAsyncSocketCallback::onCloseCompletion BOOL   )  [inline, virtual]
 

Called when a socket has been closed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the closure attempt.

virtual void OW32::CAsyncSocketCallback::onConnectCompletion BOOL   )  [inline, virtual]
 

Called when a connect() attempt has completed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the connection attempt.

virtual void OW32::CAsyncSocketCallback::onReadCompletion BOOL  ,
DWORD 
[inline, virtual]
 

Called when a read has completed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the read.
cbReceived The number of bytes received

virtual void OW32::CAsyncSocketCallback::onSendCompletion BOOL  ,
DWORD 
[inline, virtual]
 

Called when a send has completed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the send.
cbSent The number of bytes sent

virtual void OW32::CAsyncSocketCallback::onTimeout  )  [inline, virtual]
 

Called when the network idle timeout has been reached.

Note: for io/completion port sockets, you will still get a notification of failed read on CancelIo or close().

virtual void OW32::CAsyncSocketCallback::onTransmitFileCompletion BOOL  ,
DWORD 
[inline, virtual]
 

Called when transmitFile has completed.

Parameters:
bRet Indication of the success (TRUE) or failure (FALSE) of the send.
cbSent The number of bytes sent


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:22 2005 for OW32 by  doxygen 1.3.9.1