2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 #if defined (ACE_HAS_RAPI)
7 ACE_RAPI_Session::~ACE_RAPI_Session ()
9 ACE_TRACE ("ACE_RAPI_Session::~ACE_RAPI_Session");
12 // Returns the QoS for this RAPI session.
14 ACE_RAPI_Session::qos () const
19 // Overloaded method to set the QoS for this session object. Does not
20 // interfere with the underlying socket QoS.
22 ACE_RAPI_Session::qos (const ACE_QoS &ace_qos)
27 // Get the RAPI session id.
29 ACE_RAPI_Session::session_id () const
31 return this->session_id_;
34 // Set the RAPI session id.
36 ACE_RAPI_Session::session_id (const int session_id)
38 this->session_id_ = session_id;
41 // Get the RAPI file desciptor for RSVP events.
43 ACE_RAPI_Session::rsvp_events_handle ()
45 int rapi_fd = rapi_getfd (this->session_id ());
49 ACELIB_ERROR_RETURN ((LM_ERROR,
50 "Error in rapi_getfd ()\n"),
57 // Get the End Point Type (Sender/Receiver/Both).
58 ACE_INLINE ACE_QoS_Session::ACE_End_Point_Type
59 ACE_RAPI_Session::flags () const
64 // Set the End Point Type (Sender/Receiver/Both).
66 ACE_RAPI_Session::flags (const ACE_End_Point_Type flags)
72 // Get the destination address for this RAPI session.
73 ACE_INLINE ACE_INET_Addr
74 ACE_RAPI_Session::dest_addr () const
76 return this->dest_addr_;
79 // Set the destination address for this RAPI session.
81 ACE_RAPI_Session::dest_addr (const ACE_INET_Addr &dest_addr)
83 this->dest_addr_ = dest_addr;
86 // Get the source port for this RAPI session.
88 ACE_RAPI_Session::source_port () const
90 return this->source_port_;
93 // Set the source port for this RAPI session.
95 ACE_RAPI_Session::source_port (const u_short &source_port)
97 this->source_port_ = source_port;
100 ACE_INLINE ACE_INET_Addr*
101 ACE_RAPI_Session::source_addr () const
103 return this->src_addr_;
107 ACE_RAPI_Session::source_addr (ACE_INET_Addr* source_addr)
109 this->src_addr_ = source_addr;
112 // RAPI version. Returned value = 100 * major-version + minor-version.
114 ACE_RAPI_Session::version ()
119 #endif /* ACE_HAS_RAPI */
122 ACE_GQoS_Session::~ACE_GQoS_Session ()
124 ACE_TRACE ("ACE_GQoS_Session::~ACE_GQoS_Session");
127 // Returns the QoS for this GQoS session.
129 ACE_GQoS_Session::qos () const
134 // Overloaded method to set the QoS for this session object. Does not
135 // interfere with the underlying socket QoS.
137 ACE_GQoS_Session::qos (const ACE_QoS &ace_qos)
139 this->qos_ = ace_qos;
142 // Get the GQoS session id.
144 ACE_GQoS_Session::session_id () const
146 return this->session_id_;
149 // Set the GQoS session id.
151 ACE_GQoS_Session::session_id (const int session_id)
153 this->session_id_ = session_id;
156 // Get the underlying file desciptor for RSVP events.
157 // Currently returns 0 because GQoS does not have a special
158 // descriptor for QoS events.
159 ACE_INLINE ACE_HANDLE
160 ACE_GQoS_Session::rsvp_events_handle ()
165 // Get the End Point Type (Sender/Receiver/Both).
166 ACE_INLINE ACE_QoS_Session::ACE_End_Point_Type
167 ACE_GQoS_Session::flags () const
172 // Set the End Point Type (Sender/Receiver/Both).
174 ACE_GQoS_Session::flags (const ACE_End_Point_Type flags)
176 this->flags_ = flags;
179 // Get the destination address for this GQoS session.
180 ACE_INLINE ACE_INET_Addr
181 ACE_GQoS_Session::dest_addr () const
183 return this->dest_addr_;
186 // Set the destination address for this GQoS session.
188 ACE_GQoS_Session::dest_addr (const ACE_INET_Addr &dest_addr)
190 this->dest_addr_ = dest_addr;
193 // Get the source port for this RAPI session.
195 ACE_GQoS_Session::source_port () const
197 return this->source_port_;
200 // Set the source port for this RAPI session.
202 ACE_GQoS_Session::source_port (const u_short &source_port)
204 this->source_port_ = source_port;
207 ACE_INLINE ACE_INET_Addr*
208 ACE_GQoS_Session::source_addr () const
210 return this->src_addr_;
214 ACE_GQoS_Session::source_addr (ACE_INET_Addr* source_addr)
216 this->src_addr_ = source_addr;
221 ACE_GQoS_Session::version ()
226 ACE_END_VERSIONED_NAMESPACE_DECL