blob: 267cea8f0c98819b06bb91e35e006ba3b5ca3f89 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// -*- C++ -*-
/**
* @file ECG_Simple_Address_Server.h
*
* @author Marina Spivak (marina@atdesk.com)
*/
#ifndef TAO_ECG_SIMPLE_ADDRESS_SERVER_H
#define TAO_ECG_SIMPLE_ADDRESS_SERVER_H
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecUDPAdminS.h"
#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
#include "ace/INET_Addr.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_ECG_Simple_Address_Server
*
* @brief Basic implementation of RtecUDPAdmin idl interface.
*
* This simple server always returns multicast address it was
* initialized with, regardless of the header.
*/
class TAO_RTEvent_Serv_Export TAO_ECG_Simple_Address_Server :
public virtual POA_RtecUDPAdmin::AddrServer
{
public:
/// Create a new TAO_ECG_Simple_Address_Server object.
/// (Constructor access is restricted to insure that all
/// TAO_ECG_Simple_Address_Server objects are heap-allocated.)
static PortableServer::Servant_var<TAO_ECG_Simple_Address_Server> create ();
/// Destructor
virtual ~TAO_ECG_Simple_Address_Server ();
int init (const char *arg);
// = 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 addr6);
protected:
/// Constructor (protected). Clients can create new
/// TAO_ECG_Simple_Address_Server objects using the static create()
/// method.
TAO_ECG_Simple_Address_Server ();
private:
ACE_INET_Addr addr_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(__ACE_INLINE__)
#include "orbsvcs/Event/ECG_Simple_Address_Server.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* TAO_ECG_SIMPLE_ADDRESS_SERVER_H */
|