2 // Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
6 #include /**/ "ace/pre.h"
8 #include "orbsvcs/RtecUDPAdminS.h"
10 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
12 ACE_END_VERSIONED_NAMESPACE_DECL
14 class AddrServer
: public POA_RtecUDPAdmin::AddrServer
17 // A simple AddrServer
20 // The EC is able to use multiple multicast groups to transmit its
21 // data, the is given control over the mapping between the Event
22 // (type,source) pair and the (ipaddr,port) pair using a
24 // This class implements a very simple server that simply maps the
25 // <type> component to the <ipaddr> and uses a fixed <port>,
26 // provided at initialization time.
29 AddrServer (const ACE_INET_Addr
&addr
);
32 // = The RtecUDPAdmin::AddrServer methods
33 virtual void get_addr (const RtecEventComm::EventHeader
& header
,
34 RtecUDPAdmin::UDP_Addr_out addr
);
36 virtual void get_address (const RtecEventComm::EventHeader
& header
,
37 RtecUDPAdmin::UDP_Address_out addr
);
40 RtecUDPAdmin::UDP_Address addr_
;
44 #include /**/ "ace/post.h"
45 #endif /* ADDRSERVER_H */