EC_UDP_Admin.cpp

Go to the documentation of this file.
00001 // $Id: EC_UDP_Admin.cpp 78519 2007-05-29 14:54:16Z mesnier_p $
00002 
00003 #include "orbsvcs/Event/EC_UDP_Admin.h"
00004 #include "ace/INET_Addr.h"
00005 
00006 ACE_RCSID (Event,
00007            EC_UDP_Admin,
00008            "$Id: EC_UDP_Admin.cpp 78519 2007-05-29 14:54:16Z mesnier_p $")
00009 
00010 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00011 
00012 TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer (CORBA::UShort port)
00013   : port_ (port)
00014 {
00015 }
00016 
00017 TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer (void)
00018 {
00019 }
00020 
00021 void
00022 TAO_EC_Simple_AddrServer::get_addr (const RtecEventComm::EventHeader& header,
00023                                     RtecUDPAdmin::UDP_Addr_out addr)
00024 {
00025   addr.ipaddr = header.type;
00026   addr.port = this->port_;
00027 }
00028 
00029 
00030 void
00031 TAO_EC_Simple_AddrServer::get_address (const RtecEventComm::EventHeader& header,
00032                                           RtecUDPAdmin::UDP_Address_out addr)
00033 {
00034   RtecUDPAdmin::UDP_Addr v4;
00035   v4.ipaddr = header.type;
00036   v4.port = this->port_;
00037   addr.v4_addr(v4);
00038 }
00039 
00040 
00041 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:44:06 2010 for TAO_RTEvent by  doxygen 1.4.7