blob: b514413d982f1ff6ec05f71416097afba33c1555 (
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
|
// SimpleAddressServer.cpp
#include "SimpleAddressServer.h"
#include <ace/INET_Addr.h>
#include <ace/OS_NS_string.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_;
}
/*
void
SimpleAddressServer::get_ip_address (const RtecEventComm::EventHeader&,
RtecUDPAdmin::UDP_IP_Address_out address
ACE_ENV_ARG_DECL)
throw (CORBA::SystemException) {
address = new RtecUDPAdmin::UDP_IP_Address;
ACE_INET_Addr x (this->address_.port,
static_cast<ACE_UINT32>(this->address_.ipaddr));
address->length (x.get_addr_size ());
ACE_OS::memcpy (address->get_buffer (),
x.get_addr (),
x.get_addr_size ());
}
*/
|