~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to ace/CLASSIX/CLASSIX_Peer_SAP.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// CLASSIX_Peer_SAP.h,v 1.4 2003/07/19 19:04:15 dhinton Exp
3
 
 
4
 
// ============================================================================
5
 
//
6
 
// = LIBRARY
7
 
//     ace
8
 
//
9
 
// = FILENAME
10
 
//     CLASSIX_Peer_SAP.h
11
 
//
12
 
// = AUTHOR(S)
13
 
//     Nokia Telecommunications
14
 
//
15
 
// ============================================================================
16
 
 
17
 
#ifndef ACE_CLASSIX_PEER_SAP_H
18
 
#include /**/ "ace/pre.h"
19
 
#define ACE_CLASSIX_PEER_SAP_H
20
 
 
21
 
/* ------------------------------------------------------------------------- */
22
 
#include <ace/CLASSIX/CLASSIX_SAP.h>
23
 
#include <ace/CLASSIX/CLASSIX_Port_Default.h>
24
 
 
25
 
class ACE_CLASSIX_Peer_SAP
26
 
    // = TITLE
27
 
    //   Class implementing the peer SAP.
28
 
    //
29
 
    // = DESCRIPTION
30
 
    //
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.
34
 
    //
35
 
    // = SEE ALSO
36
 
    //   <ACE_SAP>
37
 
{
38
 
 public:
39
 
    // = INITIALIZATION
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 */
44
 
 
45
 
    ACE_CLASSIX_Peer_SAP(const ACE_CLASSIX_Port&);/* peer port address */
46
 
    ACE_CLASSIX_Peer_SAP(const ACE_Addr&);        /* peer port address */
47
 
 
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 */
51
 
 
52
 
    ~ACE_CLASSIX_Peer_SAP(void);
53
 
 
54
 
    int set(const ACE_CLASSIX_Port_Core&); /* peer port */
55
 
 
56
 
    int set(const ACE_Addr&);              /* peer port address */
57
 
 
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 */
61
 
 
62
 
    // = ACCESS
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
67
 
 
68
 
    // = CONTROL
69
 
#if 0
70
 
    int control(u_int = K_BROADMODE);
71
 
    int control(u_int, /* mode */ int /* site */ );
72
 
    // Interface for CLASSIX' send mode
73
 
#endif
74
 
    // = HELPER
75
 
    void dump (void) const;
76
 
    // Dump the state of an object.
77
 
 
78
 
    ACE_ALLOC_HOOK_DECLARE;
79
 
    // Declare the dynamic allocation hooks.
80
 
 
81
 
 protected:
82
 
#if 0
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
87
 
#endif
88
 
    ACE_CLASSIX_Addr     *peer_addr_;
89
 
 
90
 
 private:
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&);
94
 
};
95
 
 
96
 
/* ------------------------------------------------------------------------- */
97
 
 
98
 
#if defined (__ACE_INLINE__)
99
 
#include "ace/CLASSIX/CLASSIX_Peer_SAP.i"
100
 
 
101
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
102
 
# pragma once
103
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
104
 
 
105
 
#endif /* __ACE_INLINE__ */
106
 
 
107
 
#include /**/ "ace/post.h"
108
 
#endif /* ACE_CLASSIX_PEER_SAP_H */