summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp
blob: 51438a687d281f907df27c7d9ccd22b5e71079c2 (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
39
40
41
// $Id$

#include "orbsvcs/Event/EC_UDP_Admin.h"
#include "ace/INET_Addr.h"

ACE_RCSID (Event,
           EC_UDP_Admin,
           "$Id$")

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer (CORBA::UShort port)
  : port_ (port)
{
}

TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer (void)
{
}

void
TAO_EC_Simple_AddrServer::get_addr (const RtecEventComm::EventHeader& header,
                                    RtecUDPAdmin::UDP_Addr_out addr)
{
  addr.ipaddr = header.type;
  addr.port = this->port_;
}


void
TAO_EC_Simple_AddrServer::get_address (const RtecEventComm::EventHeader& header,
                                          RtecUDPAdmin::UDP_Address_out addr)
{
  RtecUDPAdmin::UDP_Addr v4;
  v4.ipaddr = header.type;
  v4.port = this->port_;
  addr.v4_addr(v4);
}


TAO_END_VERSIONED_NAMESPACE_DECL