2
// CLASSIX_Peer_SAP.h,v 1.4 2003/07/19 19:04:15 dhinton Exp
4
// ============================================================================
13
// Nokia Telecommunications
15
// ============================================================================
17
#ifndef ACE_CLASSIX_PEER_SAP_H
18
#include /**/ "ace/pre.h"
19
#define ACE_CLASSIX_PEER_SAP_H
21
/* ------------------------------------------------------------------------- */
22
#include <ace/CLASSIX/CLASSIX_SAP.h>
23
#include <ace/CLASSIX/CLASSIX_Port_Default.h>
25
class ACE_CLASSIX_Peer_SAP
27
// Class implementing the peer SAP.
31
// In CLASSIX, a local SAP is always a port, a peer SAP can be
32
// a port or a group of port. This class is for peer SAP and
33
// <ACE_SAP> is for local SAP.
40
ACE_CLASSIX_Peer_SAP(void);
41
// Default constructor.
42
// Needs to be initialized by a set() operation.
43
ACE_CLASSIX_Peer_SAP(const ACE_CLASSIX_Port_Core&);/* peer port */
45
ACE_CLASSIX_Peer_SAP(const ACE_CLASSIX_Port&);/* peer port address */
46
ACE_CLASSIX_Peer_SAP(const ACE_Addr&); /* peer port address */
48
ACE_CLASSIX_Peer_SAP(const KnUniqueId&); /* peer port address */
49
ACE_CLASSIX_Peer_SAP(const KnCap&); /* peer group address */
50
ACE_CLASSIX_Peer_SAP(int /* stamp */); /* stamp for peer group */
52
~ACE_CLASSIX_Peer_SAP(void);
54
int set(const ACE_CLASSIX_Port_Core&); /* peer port */
56
int set(const ACE_Addr&); /* peer port address */
58
int set(const KnUniqueId&); /* peer port address */
59
int set(const KnCap&); /* peer group address */
60
int set(int /* stamp */); /* stamp for the peer group */
63
const ACE_CLASSIX_Addr* get_addr(void) const;
64
// Returns peer's address, either a port or a group of ports
65
int is_configured(void) const;
66
// Returns 1, if address information is proper; Returns 0 otherwise
70
int control(u_int = K_BROADMODE);
71
int control(u_int, /* mode */ int /* site */ );
72
// Interface for CLASSIX' send mode
75
void dump (void) const;
76
// Dump the state of an object.
78
ACE_ALLOC_HOOK_DECLARE;
79
// Declare the dynamic allocation hooks.
83
virtual set_mode_(u_int = K_BROADMODE); /* theMode */
84
// Sets the addressing mode with the current setting of coTarget
85
virtual set_mode_(u_int, /* mode */ int /* site */);
86
// Sets the addressing mode as well as the coTarget
88
ACE_CLASSIX_Addr *peer_addr_;
91
// Disable copy constructor
92
ACE_CLASSIX_Peer_SAP(ACE_CLASSIX_Peer_SAP const&);
93
ACE_CLASSIX_Peer_SAP const& operator=(ACE_CLASSIX_Peer_SAP const&);
96
/* ------------------------------------------------------------------------- */
98
#if defined (__ACE_INLINE__)
99
#include "ace/CLASSIX/CLASSIX_Peer_SAP.i"
101
#if !defined (ACE_LACKS_PRAGMA_ONCE)
103
#endif /* ACE_LACKS_PRAGMA_ONCE */
105
#endif /* __ACE_INLINE__ */
107
#include /**/ "ace/post.h"
108
#endif /* ACE_CLASSIX_PEER_SAP_H */