Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_MT_Mcast / AddrServer.h
blob59c1545b7a18679e7c9429190c72260002eb294b
1 // -*- C++ -*-
2 // Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
4 #ifndef ADDRSERVER_H
5 #define ADDRSERVER_H
6 #include /**/ "ace/pre.h"
8 #include "orbsvcs/RtecUDPAdminS.h"
10 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
11 class ACE_INET_Addr;
12 ACE_END_VERSIONED_NAMESPACE_DECL
14 class AddrServer : public POA_RtecUDPAdmin::AddrServer
16 // = TITLE
17 // A simple AddrServer
19 // = DESCRIPTION
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
23 // AddrServer.
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.
28 public:
29 AddrServer (const ACE_INET_Addr &addr);
30 // Constructor
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);
39 private:
40 RtecUDPAdmin::UDP_Address addr_;
41 // The address
44 #include /**/ "ace/post.h"
45 #endif /* ADDRSERVER_H */