TAO_ECG_Simple_Address_Server Class Reference

Basic implementation of RtecUDPAdmin idl interface. More...

#include <ECG_Simple_Address_Server.h>

Collaboration diagram for TAO_ECG_Simple_Address_Server:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~TAO_ECG_Simple_Address_Server (void)
 Destructor.

int init (const char *arg)
virtual void get_addr (const RtecEventComm::EventHeader &header, RtecUDPAdmin::UDP_Addr_out addr) throw (CORBA::SystemException)

Static Public Member Functions

TAO_EC_Servant_Var< TAO_ECG_Simple_Address_Servercreate (void)

Protected Member Functions

 TAO_ECG_Simple_Address_Server (void)

Private Attributes

ACE_INET_Addr addr_

Detailed Description

Basic implementation of RtecUDPAdmin idl interface.

This simple server always returns multicast address it was initialized with, regardless of the header.

Definition at line 30 of file ECG_Simple_Address_Server.h.


Constructor & Destructor Documentation

TAO_ECG_Simple_Address_Server::~TAO_ECG_Simple_Address_Server void   )  [virtual]
 

Destructor.

Definition at line 15 of file ECG_Simple_Address_Server.cpp.

00016 {
00017 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server void   )  [protected]
 

Constructor (protected). Clients can create new TAO_ECG_Simple_Address_Server objects using the static create() method.

Definition at line 11 of file ECG_Simple_Address_Server.cpp.

00012 {
00013 }


Member Function Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_EC_Servant_Var< TAO_ECG_Simple_Address_Server > TAO_ECG_Simple_Address_Server::create void   )  [static]
 

Create a new TAO_ECG_Simple_Address_Server object. (Constructor access is restricted to insure that all TAO_ECG_Simple_Address_Server objects are heap-allocated.)

Definition at line 8 of file ECG_Simple_Address_Server.i.

References ACE_NEW_RETURN.

Referenced by TAO_ECG_Mcast_Gateway::init_address_server().

00009 {
00010   TAO_EC_Servant_Var<TAO_ECG_Simple_Address_Server> s;
00011   ACE_NEW_RETURN (s,
00012                   TAO_ECG_Simple_Address_Server,
00013                   s);
00014   return s;
00015 }

void TAO_ECG_Simple_Address_Server::get_addr const RtecEventComm::EventHeader header,
RtecUDPAdmin::UDP_Addr_out  addr
throw (CORBA::SystemException) [virtual]
 

Definition at line 26 of file ECG_Simple_Address_Server.cpp.

00031 {
00032   // unsigned long
00033   addr.ipaddr = this->addr_.get_ip_address ();
00034   // unsigned short
00035   addr.port = this->addr_.get_port_number ();
00036 }

int TAO_ECG_Simple_Address_Server::init const char *  arg  ) 
 

Definition at line 20 of file ECG_Simple_Address_Server.cpp.

References ACE_INET_Addr::set().

00021 {
00022   return this->addr_.set (mcast_addr);
00023 }


Member Data Documentation

ACE_INET_Addr TAO_ECG_Simple_Address_Server::addr_ [private]
 

Definition at line 59 of file ECG_Simple_Address_Server.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:16:22 2006 for TAO_RTEvent by doxygen 1.3.6