ACE_WIN32_Asynch_Operation Class Reference

This class abstracts out the common things needed for implementing Asynch_Operation for WIN32 platform. More...

#include <WIN32_Asynch_IO.h>

Inheritance diagram for ACE_WIN32_Asynch_Operation:
Inheritance graph
[legend]
Collaboration diagram for ACE_WIN32_Asynch_Operation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int open (const ACE_Handler::Proxy_Ptr &handler_proxy, ACE_HANDLE handle, const void *completion_key, ACE_Proactor *proactor)
int cancel (void)
ACE_Proactorproactor (void) const
 Return the underlying proactor.

Protected Member Functions

 ACE_WIN32_Asynch_Operation (ACE_WIN32_Proactor *win32_proactor)
 Constructor.
virtual ~ACE_WIN32_Asynch_Operation (void)
 Destructor.

Protected Attributes

ACE_WIN32_Proactorwin32_proactor_
 Win32 Proactor.
ACE_Proactorproactor_
 Proactor that this asynch IO is registered with.
ACE_Handler::Proxy_Ptr handler_proxy_
 Handler that will receive the callback.
ACE_HANDLE handle_
 I/O handle used for reading.

Detailed Description

This class abstracts out the common things needed for implementing Asynch_Operation for WIN32 platform.

Definition at line 156 of file WIN32_Asynch_IO.h.


Constructor & Destructor Documentation

ACE_WIN32_Asynch_Operation::ACE_WIN32_Asynch_Operation ( ACE_WIN32_Proactor win32_proactor  )  [protected]

Constructor.

virtual ACE_WIN32_Asynch_Operation::~ACE_WIN32_Asynch_Operation ( void   )  [protected, virtual]

Destructor.


Member Function Documentation

int ACE_WIN32_Asynch_Operation::cancel ( void   )  [virtual]

This cancels all pending accepts operations that were issued by the calling thread. The function does not cancel asynchronous operations issued by other threads.

Implements ACE_Asynch_Operation_Impl.

Reimplemented in ACE_WIN32_Asynch_Read_Stream, ACE_WIN32_Asynch_Write_Stream, ACE_WIN32_Asynch_Read_File, ACE_WIN32_Asynch_Write_File, ACE_WIN32_Asynch_Accept, ACE_WIN32_Asynch_Connect, ACE_WIN32_Asynch_Transmit_File, ACE_WIN32_Asynch_Read_Dgram, and ACE_WIN32_Asynch_Write_Dgram.

int ACE_WIN32_Asynch_Operation::open ( const ACE_Handler::Proxy_Ptr handler_proxy,
ACE_HANDLE  handle,
const void *  completion_key,
ACE_Proactor proactor 
) [virtual]

Initializes the factory with information which will be used with each asynchronous call. If (<handle> == ACE_INVALID_HANDLE), <ACE_Handler::handle> will be called on the handler to get the correct handle.

Implements ACE_Asynch_Operation_Impl.

Reimplemented in ACE_WIN32_Asynch_Read_Stream, ACE_WIN32_Asynch_Write_Stream, ACE_WIN32_Asynch_Read_File, ACE_WIN32_Asynch_Write_File, ACE_WIN32_Asynch_Accept, ACE_WIN32_Asynch_Connect, ACE_WIN32_Asynch_Transmit_File, ACE_WIN32_Asynch_Read_Dgram, and ACE_WIN32_Asynch_Write_Dgram.

ACE_Proactor* ACE_WIN32_Asynch_Operation::proactor ( void   )  const [virtual]

Member Data Documentation

ACE_HANDLE ACE_WIN32_Asynch_Operation::handle_ [protected]

I/O handle used for reading.

Definition at line 199 of file WIN32_Asynch_IO.h.

Handler that will receive the callback.

Definition at line 196 of file WIN32_Asynch_IO.h.

Proactor that this asynch IO is registered with.

Definition at line 193 of file WIN32_Asynch_IO.h.

Win32 Proactor.

Definition at line 190 of file WIN32_Asynch_IO.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:17:25 2009 for ACE by  doxygen 1.6.1