summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/SimpleAddressServer.cpp
blob: 9007b31369a181174ef14935d7ae8c9494973aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// $Id$

// SimpleAddressServer.cpp

#include "SimpleAddressServer.h"
#include <ace/INET_Addr.h>

SimpleAddressServer::SimpleAddressServer (const ACE_INET_Addr& address) {
  this->address_.ipaddr = address.get_ip_address ();
  this->address_.port   = address.get_port_number ();
}

void
SimpleAddressServer::get_addr (const RtecEventComm::EventHeader&,
             RtecUDPAdmin::UDP_Addr& address)
    throw (CORBA::SystemException) {
  address = this->address_;
}