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

OW32::CIoCompletionListenerAcceptEx Class Reference

A wrapped AcceptEx for the I/O completion listener. More...

#include <IoCompletionListener.h>

Inheritance diagram for OW32::CIoCompletionListenerAcceptEx:

OW32::CIoCompletion List of all members.

Public Member Functions

 CIoCompletionListenerAcceptEx (CIoCompletionListener *listener, CIoCompletionListenerCallback *callback)
 Construct a new IOCP based AcceptEx handler.
virtual void OnIoCompletion (BOOL bRet, DWORD dwBytes, LPOVERLAPPED lpOS)
 The AcceptEx() completion function.
void getAddresses (sockaddr_in **local_address, sockaddr_in **remote_address)
 Get the addresses following an onAcceptCompletion notification.
CIoCompletionListener * getListener () const
 Return the parent listener.
SOCKET detachAcceptedSocket ()
 Detach and return the accepted socket.
int post (SOCKET sListen)
 Post an AcceptEx(), called by CIoCompletionListener.

Detailed Description

A wrapped AcceptEx for the I/O completion listener.


Constructor & Destructor Documentation

OW32::CIoCompletionListenerAcceptEx::CIoCompletionListenerAcceptEx (  CIoCompletionListener *  listener,
CIoCompletionListenerCallback *  callback
)  [inline]
 

Construct a new IOCP based AcceptEx handler.

Parameters:
listener The parent listener
callback The callback to notify


Member Function Documentation

SOCKET OW32::CIoCompletionListenerAcceptEx::detachAcceptedSocket (   )  [inline]
 

Detach and return the accepted socket.

Returns:
The accepted socket

void OW32::CIoCompletionListenerAcceptEx::getAddresses (  sockaddr_in **  local_address,
sockaddr_in **  remote_address
)  [inline]
 

Get the addresses following an onAcceptCompletion notification.

Parameters:
local_address Returns a pointer to the local address
remote_address Returns a pointer to the remote address

virtual void OW32::CIoCompletionListenerAcceptEx::OnIoCompletion (  BOOL  bRet,
DWORD  dwBytes,
LPOVERLAPPED  lpOS
)  [inline, virtual]
 

The AcceptEx() completion function.

Parameters:
bRet The result of the operation
dwBytes The number of bytes transferred during the operation
lpOS The overlapped structure for the operation

Implements OW32::CIoCompletion.


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