Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ACE_RMCast_UDP_Event_Handler Class Reference

Implement an Adapter for the ACE_RMCast_IO_UDP class. More...

#include <RMCast_UDP_Event_Handler.h>

Inheritance diagram for ACE_RMCast_UDP_Event_Handler:

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast_UDP_Event_Handler:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_RMCast_UDP_Event_Handler (ACE_RMCast_IO_UDP *io_udp)
 Constructor, save io_udp as the Adaptee in the Adapter pattern. More...

 ~ACE_RMCast_UDP_Event_Handler (void)
 Destructor. More...

virtual ACE_HANDLE get_handle (void) const
 Documented in ACE_Event_Handler class. More...

virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 Documented in ACE_Event_Handler class. More...

virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 Documented in ACE_Event_Handler class. More...


Private Attributes

ACE_RMCast_IO_UDPio_udp_
 The adaptee. More...


Detailed Description

Implement an Adapter for the ACE_RMCast_IO_UDP class.

Applications may wish to use the ACE_Reactor to demultiplex I/O events for an ACE_RMCast_IO_UDP object. However other application may choose to make ACE_RMCast_IO_UDP active, or they may dedicate their own threads for its events. To avoid couplin ACE_RMCast_IO_UDP with the Reactor we don't make it derived from ACE_Event_Handler or any other class in the Reactor framework, instead, this simple Adapter can forward the Reactor messages to an ACE_RMCast_IO_UDP object.

Definition at line 28 of file RMCast_UDP_Event_Handler.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_UDP_Event_Handler::ACE_RMCast_UDP_Event_Handler ACE_RMCast_IO_UDP   io_udp
 

Constructor, save io_udp as the Adaptee in the Adapter pattern.

Definition at line 5 of file RMCast_UDP_Event_Handler.i.

00006   :  io_udp_ (io)
00007 {
00008 }

ACE_RMCast_UDP_Event_Handler::~ACE_RMCast_UDP_Event_Handler void   
 

Destructor.

Notice that this class does not own the ACE_RMCast_IO_UDP adaptee, so it does not destroy it.

Definition at line 14 of file RMCast_UDP_Event_Handler.cpp.

00015 {
00016 }


Member Function Documentation

ACE_HANDLE ACE_RMCast_UDP_Event_Handler::get_handle void    const [virtual]
 

Documented in ACE_Event_Handler class.

Reimplemented from ACE_Event_Handler.

Definition at line 19 of file RMCast_UDP_Event_Handler.cpp.

References ACE_RMCast_IO_UDP::get_handle, and io_udp_.

00020 {
00021   return this->io_udp_->get_handle ();
00022 }

int ACE_RMCast_UDP_Event_Handler::handle_input ACE_HANDLE    fd = ACE_INVALID_HANDLE [virtual]
 

Documented in ACE_Event_Handler class.

Reimplemented from ACE_Event_Handler.

Definition at line 25 of file RMCast_UDP_Event_Handler.cpp.

References ACE_RMCast_IO_UDP::handle_input, and io_udp_.

00026 {
00027   return this->io_udp_->handle_input (h);
00028 }

int ACE_RMCast_UDP_Event_Handler::handle_timeout const ACE_Time_Value   current_time,
const void *    act = 0
[virtual]
 

Documented in ACE_Event_Handler class.

Reimplemented from ACE_Event_Handler.

Definition at line 31 of file RMCast_UDP_Event_Handler.cpp.

00033 {
00034   // @@ return this->io_udp_->handle_timeout ();
00035   return 0;
00036 }


Member Data Documentation

ACE_RMCast_IO_UDP* ACE_RMCast_UDP_Event_Handler::io_udp_ [private]
 

The adaptee.

Definition at line 51 of file RMCast_UDP_Event_Handler.h.

Referenced by get_handle, and handle_input.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:14:23 2003 for ACE_RMCast by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002