blob: a115866b93a6d22a4819eb6029c64a37c1a4f86f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// $Id$
#include "orbsvcs/Event/ECG_Simple_Address_Server.h"
#if !defined(__ACE_INLINE__)
#include "orbsvcs/Event/ECG_Simple_Address_Server.inl"
#endif /* __ACE_INLINE__ */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server (void)
{
}
TAO_ECG_Simple_Address_Server::~TAO_ECG_Simple_Address_Server (void)
{
}
int
TAO_ECG_Simple_Address_Server::init (const char *mcast_addr)
{
return this->addr_.set (mcast_addr);
}
void
TAO_ECG_Simple_Address_Server::get_addr (
const RtecEventComm::EventHeader& /*header*/,
RtecUDPAdmin::UDP_Addr_out addr)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// unsigned long
addr.ipaddr = this->addr_.get_ip_address ();
// unsigned short
addr.port = this->addr_.get_port_number ();
}
TAO_END_VERSIONED_NAMESPACE_DECL
|