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

OW32::CAsyncConnectionThread Class Reference

Thread that implements a message queue to handle notifications from sockets. More...

#include <AsyncSocket.h>

Inheritance diagram for OW32::CAsyncConnectionThread:

OW32::CThread List of all members.

Public Member Functions

virtual BOOL postTerminate ()
 Initiate a shutdown of the connection thread.
virtual BOOL terminate ()
 Initiate shutdown, and wait for exit of the connection thread.
virtual BOOL initialise ()
 Create the thread and wait for it to be ready to work.
virtual unsigned int Run ()
 The thread run function to be overriden by the derived class.

Detailed Description

Thread that implements a message queue to handle notifications from sockets.

Can be used, e.g. where you want to use IOCP but are making outgoing connections on NT4/w2k, which have no ConnectEx support. ConnectEx is automatically used if present (XP/2003+).


Member Function Documentation

virtual BOOL OW32::CAsyncConnectionThread::initialise  )  [inline, virtual]
 

Create the thread and wait for it to be ready to work.

Returns:
TRUE if successful, FALSE otherwise.

virtual BOOL OW32::CAsyncConnectionThread::postTerminate  )  [inline, virtual]
 

Initiate a shutdown of the connection thread.

You need to wait for it to exit as standard.

virtual unsigned int OW32::CAsyncConnectionThread::Run  )  [inline, virtual]
 

The thread run function to be overriden by the derived class.

Returns:
The thread exit code.
You must override this - it is pure virtual.

Implements OW32::CThread.

virtual BOOL OW32::CAsyncConnectionThread::terminate  )  [inline, virtual]
 

Initiate shutdown, and wait for exit of the connection thread.


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