TAO_EC_Simple_AddrServer Class Reference

TAO Real-time Event Service; a simple UDP address server. More...

#include <EC_UDP_Admin.h>

List of all members.

Public Member Functions

 TAO_EC_Simple_AddrServer (CORBA::UShort port)
 Constructor.

virtual ~TAO_EC_Simple_AddrServer (void)
 Destructor.

virtual void get_addr (const RtecEventComm::EventHeader &header, RtecUDPAdmin::UDP_Addr_out addr)
virtual void get_address (const RtecEventComm::EventHeader &header, RtecUDPAdmin::UDP_Address_out addr)

Private Attributes

CORBA::UShort port_


Detailed Description

TAO Real-time Event Service; a simple UDP address server.

The EC is able to use multiple multicast groups to transmit its data, the is given control over the mapping between the Event (type,source) pair and the (ipaddr,port) pair using a AddrServer. This class implements a very simple server that simply maps the type component to the ipaddr and uses a fixed port, provided at initialization time.

Definition at line 38 of file EC_UDP_Admin.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer CORBA::UShort  port  ) 
 

Constructor.

Definition at line 12 of file EC_UDP_Admin.cpp.

00013   : port_ (port)
00014 {
00015 }

TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer void   )  [virtual]
 

Destructor.

Definition at line 17 of file EC_UDP_Admin.cpp.

00018 {
00019 }


Member Function Documentation

void TAO_EC_Simple_AddrServer::get_addr const RtecEventComm::EventHeader header,
RtecUDPAdmin::UDP_Addr_out  addr
[virtual]
 

Definition at line 22 of file EC_UDP_Admin.cpp.

References RtecEventComm::EventHeader::type.

00024 {
00025   addr.ipaddr = header.type;
00026   addr.port = this->port_;
00027 }

void TAO_EC_Simple_AddrServer::get_address const RtecEventComm::EventHeader header,
RtecUDPAdmin::UDP_Address_out  addr
[virtual]
 

Definition at line 31 of file EC_UDP_Admin.cpp.

References RtecUDPAdmin::UDP_Addr::ipaddr, RtecUDPAdmin::UDP_Addr::port, and RtecEventComm::EventHeader::type.

00033 {
00034   RtecUDPAdmin::UDP_Addr v4;
00035   v4.ipaddr = header.type;
00036   v4.port = this->port_;
00037   addr.v4_addr(v4);
00038 }


Member Data Documentation

CORBA::UShort TAO_EC_Simple_AddrServer::port_ [private]
 

Definition at line 55 of file EC_UDP_Admin.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:43:05 2008 for TAO_RTEvent by doxygen 1.3.6