00001 // ECG_Simple_Address_Server.cpp,v 1.3 2006/03/14 06:14:25 jtc Exp 00002 00003 #include "orbsvcs/Event/ECG_Simple_Address_Server.h" 00004 00005 #if !defined(__ACE_INLINE__) 00006 #include "orbsvcs/Event/ECG_Simple_Address_Server.i" 00007 #endif /* __ACE_INLINE__ */ 00008 00009 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00010 00011 TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server (void) 00012 { 00013 } 00014 00015 TAO_ECG_Simple_Address_Server::~TAO_ECG_Simple_Address_Server (void) 00016 { 00017 } 00018 00019 int 00020 TAO_ECG_Simple_Address_Server::init (const char *mcast_addr) 00021 { 00022 return this->addr_.set (mcast_addr); 00023 } 00024 00025 void 00026 TAO_ECG_Simple_Address_Server::get_addr ( 00027 const RtecEventComm::EventHeader& /*header*/, 00028 RtecUDPAdmin::UDP_Addr_out addr 00029 ACE_ENV_ARG_DECL_NOT_USED) 00030 ACE_THROW_SPEC ((CORBA::SystemException)) 00031 { 00032 // unsigned long 00033 addr.ipaddr = this->addr_.get_ip_address (); 00034 // unsigned short 00035 addr.port = this->addr_.get_port_number (); 00036 } 00037 00038 TAO_END_VERSIONED_NAMESPACE_DECL