blob: 064d5c35183e823ae4407814f8c7f3a6d84cd3ac (
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
38
|
// $Id$
#include "orbsvcs/Event/ECG_Simple_Address_Server.h"
#if !defined(__ACE_INLINE__)
#include "orbsvcs/Event/ECG_Simple_Address_Server.i"
#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_ENV_ARG_DECL_NOT_USED)
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
|