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

OW32::CMessageListener Class Reference

Listener based on the windows messages model. More...

#include <Listener.h>

Inheritance diagram for OW32::CMessageListener:

OW32::CListener OW32::CAsyncSocketCallback List of all members.

Public Member Functions

 CMessageListener (CListenerCallback *pCallback)
 Construct the listener with the given callback.
void onAcceptCompletion (BOOL bRet)
 CAsyncSocketCallback override for FD_ACCEPT notification.
int Accept ()
 Begin accepting connections.
virtual int GetAddresses (sockaddr_in **local_addr, sockaddr_in **remote_addr)
 Get the addresses following an onAcceptCompletion notification.
 operator SOCKET ()
 extractor for the listening socket

Detailed Description

Listener based on the windows messages model.


Constructor & Destructor Documentation

OW32::CMessageListener::CMessageListener CListenerCallback pCallback  )  [inline]
 

Construct the listener with the given callback.

Parameters:
pCallback The callback object to receive accept notifications


Member Function Documentation

virtual int OW32::CMessageListener::GetAddresses sockaddr_in **  local_addr,
sockaddr_in **  remote_addr
[inline, virtual]
 

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

Implements OW32::CListener.


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