TAO_AV_UDP_MCast_Flow_Handler Class Reference

Flow Handler for data sent over multicast sockets. More...

#include <MCast.h>

Inheritance diagram for TAO_AV_UDP_MCast_Flow_Handler:

Inheritance graph
[legend]
Collaboration diagram for TAO_AV_UDP_MCast_Flow_Handler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_AV_UDP_MCast_Flow_Handler (void)
virtual ~TAO_AV_UDP_MCast_Flow_Handler (void)
virtual ACE_HANDLE get_handle (void) const
virtual int handle_input (ACE_HANDLE fd)
virtual int handle_timeout (const ACE_Time_Value &tv, const void *arg=0)
ACE_SOCK_Dgram_Mcastget_mcast_socket (void) const
virtual ACE_Event_Handlerevent_handler (void)
 get the underlying event handler. To be overridden by the derived clases.
void set_peer_addr (ACE_INET_Addr *peer_addr)

Protected Attributes

ACE_INET_Addrpeer_addr_
ACE_SOCK_Dgram_Mcastdgram_mcast_

Detailed Description

Flow Handler for data sent over multicast sockets.

Definition at line 90 of file MCast.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_AV_UDP_MCast_Flow_Handler::TAO_AV_UDP_MCast_Flow_Handler ( void   ) 

Ctor Dtor

Definition at line 17 of file MCast.cpp.

References ACE_NEW, dgram_mcast_, and TAO_AV_Flow_Handler::transport_.

00018 {
00019   ACE_NEW (transport_,
00020            TAO_AV_UDP_MCast_Transport (this));
00021   ACE_NEW (dgram_mcast_,
00022            ACE_SOCK_Dgram_Mcast);
00023 }

TAO_AV_UDP_MCast_Flow_Handler::~TAO_AV_UDP_MCast_Flow_Handler ( void   )  [virtual]

Definition at line 25 of file MCast.cpp.

References dgram_mcast_, and TAO_AV_Flow_Handler::transport_.

00026 {
00027   delete this->transport_;
00028   delete this->dgram_mcast_;
00029 }


Member Function Documentation

virtual ACE_Event_Handler* TAO_AV_UDP_MCast_Flow_Handler::event_handler ( void   )  [inline, virtual]

get the underlying event handler. To be overridden by the derived clases.

Implements TAO_AV_Flow_Handler.

Definition at line 103 of file MCast.h.

00103 { return this; }

ACE_HANDLE TAO_AV_UDP_MCast_Flow_Handler::get_handle ( void   )  const [virtual]

Reimplemented from ACE_Event_Handler.

Definition at line 47 of file MCast.cpp.

References ACE_DEBUG, ACE_IPC_SAP::get_handle(), get_mcast_socket(), LM_DEBUG, and TAO_debug_level.

00048 {
00049   if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_UDP_MCast_Flow_Handler::get_handle "));
00050   return this->get_mcast_socket ()->get_handle () ;
00051 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_SOCK_Dgram_Mcast * TAO_AV_UDP_MCast_Flow_Handler::get_mcast_socket ( void   )  const

Definition at line 12 of file MCast.inl.

References dgram_mcast_.

Referenced by get_handle(), TAO_AV_UDP_MCast_Transport::get_local_addr(), TAO_AV_UDP_MCast_Transport::recv(), TAO_AV_UDP_MCast_Transport::send(), and TAO_AV_UDP_Connection_Setup::setup().

00013 {
00014   return this->dgram_mcast_;
00015 }

int TAO_AV_UDP_MCast_Flow_Handler::handle_input ( ACE_HANDLE  fd  )  [virtual]

Reimplemented from ACE_Event_Handler.

Definition at line 33 of file MCast.cpp.

References TAO_AV_Protocol_Object::handle_input(), and TAO_AV_Flow_Handler::protocol_object_.

00034 {
00035   return this->protocol_object_->handle_input ();
00036 //  return 0;
00037 }

int TAO_AV_UDP_MCast_Flow_Handler::handle_timeout ( const ACE_Time_Value tv,
const void *  arg = 0 
) [virtual]

Reimplemented from ACE_Event_Handler.

Definition at line 40 of file MCast.cpp.

References TAO_AV_Flow_Handler::handle_timeout().

00042 {
00043   return TAO_AV_Flow_Handler::handle_timeout (tv,arg);
00044 }

void TAO_AV_UDP_MCast_Flow_Handler::set_peer_addr ( ACE_INET_Addr peer_addr  ) 

Definition at line 54 of file MCast.cpp.

References peer_addr_.

Referenced by TAO_AV_UDP_Connection_Setup::setup().

00055 {
00056   this->peer_addr_ = peer_addr;
00057 }


Member Data Documentation

ACE_SOCK_Dgram_Mcast* TAO_AV_UDP_MCast_Flow_Handler::dgram_mcast_ [protected]

Definition at line 107 of file MCast.h.

Referenced by get_mcast_socket(), TAO_AV_UDP_MCast_Flow_Handler(), and ~TAO_AV_UDP_MCast_Flow_Handler().

ACE_INET_Addr* TAO_AV_UDP_MCast_Flow_Handler::peer_addr_ [protected]

Definition at line 106 of file MCast.h.

Referenced by set_peer_addr().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:48:07 2010 for TAO_AV by  doxygen 1.4.7