blob: 16b71eac2533a20206b7304cb6dcdc1a2fb4ef25 (
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
42
43
44
45
46
47
48
49
50
51
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file AddrServer.h
*
* $Id$
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
//=============================================================================
#ifndef ADDRSERVER_H
#define ADDRSERVER_H
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecUDPAdminS.h"
/**
* @class AddrServer
*
* @brief A simple AddrServer
*
* The EC is able to use multiple multicast groups to transmit its
* data, the is given control over the mapping between the Event
* (type,source) pair and the (ipaddr,port) pair using a
* AddrServer.
* This class implements a very simple server that simply maps the
* <type> component to the <ipaddr> and uses a fixed <port>,
* provided at initialization time.
*/
class AddrServer : public POA_RtecUDPAdmin::AddrServer
{
public:
/// Constructor
AddrServer (const RtecUDPAdmin::UDP_Addr& addr);
// = The RtecUDPAdmin::AddrServer methods
virtual void get_addr (const RtecEventComm::EventHeader& header,
RtecUDPAdmin::UDP_Addr_out addr);
virtual void get_address (const RtecEventComm::EventHeader& header,
RtecUDPAdmin::UDP_Address_out addr);
private:
/// The address
RtecUDPAdmin::UDP_Addr addr_;
};
#include /**/ "ace/post.h"
#endif /* ADDRSERVER_H */
|