OpenDDS::Federator::InfoRepoMulticastResponder Class Reference

Event Handler that services multicast requests for IOR of a bootstrappable service. More...

#include <InfoRepoMulticastResponder.h>

List of all members.

Public Member Functions

 InfoRepoMulticastResponder ()
 Constructor.
virtual ~InfoRepoMulticastResponder ()
 Destructor.
int init (CORBA::ORB_ptr orb, u_short port, const char *mcast_addr)
 Initialization method.
int init (CORBA::ORB_ptr orb, const char *mcast_addr)
virtual int handle_input (ACE_HANDLE n)
 Callback when input is received on the handle.
virtual int handle_timeout (const ACE_Time_Value &tv, const void *arg)
 Callback when a timeout has occurred.
virtual ACE_HANDLE get_handle () const
 Returns the internal handle used to receive multicast.

Private Member Functions

int common_init (CORBA::ORB_ptr orb)
 Factor common functionality from the two init functions.

Private Attributes

bool initialized_
 Are we initialized?
CORBA::ORB_var orb_
 The ORB.
ACE_SOCK_Dgram_Mcast mcast_dgram_
 multicast endpoint of communication
ACE_INET_Addr mcast_addr_
 multicast address
ACE_INET_Addr response_addr_
 address of response.
ACE_SOCK_Dgram response_
 socket for response to the multicast
ACE_CString mcast_nic_


Detailed Description

Event Handler that services multicast requests for IOR of a bootstrappable service.

This class uses the ACE_SOCK_Dgram_Mcast class and should be registered with a reactor and should be initialized with the ior of the service to be multicasted.


Constructor & Destructor Documentation

OpenDDS::Federator::InfoRepoMulticastResponder::InfoRepoMulticastResponder (  ) 

Constructor.

OpenDDS::Federator::InfoRepoMulticastResponder::~InfoRepoMulticastResponder (  )  [virtual]

Destructor.


Member Function Documentation

int OpenDDS::Federator::InfoRepoMulticastResponder::common_init ( CORBA::ORB_ptr  orb  )  [private]

Factor common functionality from the two init functions.

ACE_HANDLE OpenDDS::Federator::InfoRepoMulticastResponder::get_handle (  )  const [virtual]

Returns the internal handle used to receive multicast.

int OpenDDS::Federator::InfoRepoMulticastResponder::handle_input ( ACE_HANDLE  n  )  [virtual]

Callback when input is received on the handle.

int OpenDDS::Federator::InfoRepoMulticastResponder::handle_timeout ( const ACE_Time_Value &  tv,
const void *  arg 
) [virtual]

Callback when a timeout has occurred.

int OpenDDS::Federator::InfoRepoMulticastResponder::init ( CORBA::ORB_ptr  orb,
const char *  mcast_addr 
)

Initialization method. Takes in "address:port" string as a parameter.

Save for use later.

int OpenDDS::Federator::InfoRepoMulticastResponder::init ( CORBA::ORB_ptr  orb,
u_short  port,
const char *  mcast_addr 
)

Initialization method.


Member Data Documentation

bool OpenDDS::Federator::InfoRepoMulticastResponder::initialized_ [private]

Are we initialized?

ACE_INET_Addr OpenDDS::Federator::InfoRepoMulticastResponder::mcast_addr_ [private]

multicast address

ACE_SOCK_Dgram_Mcast OpenDDS::Federator::InfoRepoMulticastResponder::mcast_dgram_ [private]

multicast endpoint of communication

ACE_CString OpenDDS::Federator::InfoRepoMulticastResponder::mcast_nic_ [private]

CORBA::ORB_var OpenDDS::Federator::InfoRepoMulticastResponder::orb_ [private]

The ORB.

ACE_SOCK_Dgram OpenDDS::Federator::InfoRepoMulticastResponder::response_ [private]

socket for response to the multicast

ACE_INET_Addr OpenDDS::Federator::InfoRepoMulticastResponder::response_addr_ [private]

address of response.


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 09:37:57 2008 for OpenDDS by  doxygen 1.4.7