Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

QoS_Session_Impl.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: QoS_Session_Impl.i,v 1.1.1.1 2001/12/04 14:33:14 chad Exp $
00003 
00004 // QoS_Session_Impl.i
00005 
00006 #if defined (ACE_HAS_RAPI)
00007 
00008 ACE_INLINE
00009 ACE_RAPI_Session::~ACE_RAPI_Session (void)
00010 {
00011   ACE_TRACE ("ACE_RAPI_Session::~ACE_RAPI_Session");
00012 }
00013 
00014 // Returns the QoS for this RAPI session.
00015 ACE_INLINE ACE_QoS
00016 ACE_RAPI_Session::qos (void) const
00017 {
00018   return this->qos_;
00019 }
00020 
00021 // Overloaded method to set the QoS for this session object. Does not
00022 // interfere with the underlying socket QoS.
00023 ACE_INLINE void
00024 ACE_RAPI_Session::qos (const ACE_QoS &ace_qos)
00025 {
00026   this->qos_ = ace_qos;
00027 }
00028 
00029 // Get the RAPI session id.
00030 ACE_INLINE int
00031 ACE_RAPI_Session::session_id (void) const
00032 {
00033   return this->session_id_;
00034 }
00035 
00036 // Set the RAPI session id.
00037 ACE_INLINE void
00038 ACE_RAPI_Session::session_id (const int session_id)
00039 {
00040   this->session_id_ = session_id;
00041 }
00042 
00043 // Get the RAPI file desciptor for RSVP events.
00044 ACE_INLINE ACE_HANDLE
00045 ACE_RAPI_Session::rsvp_events_handle (void)
00046 {
00047   int rapi_fd = rapi_getfd (this->session_id ());
00048   if (rapi_fd == -1)
00049     {
00050       this->close ();
00051       ACE_ERROR_RETURN ((LM_ERROR,
00052                          "Error in rapi_getfd ()\n"),
00053                         -1);
00054     }
00055 
00056   return rapi_fd;
00057 }
00058 
00059 // Get the End Point Type (Sender/Receiver/Both).
00060 ACE_INLINE ACE_QoS_Session::ACE_End_Point_Type
00061 ACE_RAPI_Session::flags (void) const
00062 {
00063   return this->flags_;
00064 }
00065 
00066 // Set the End Point Type (Sender/Receiver/Both).
00067 ACE_INLINE void
00068 ACE_RAPI_Session::flags (const ACE_End_Point_Type flags)
00069 {
00070   this->flags_ = flags;
00071 }
00072 
00073 
00074 // Get the destination address for this RAPI session.
00075 ACE_INLINE ACE_INET_Addr
00076 ACE_RAPI_Session::dest_addr (void) const
00077 {
00078   return this->dest_addr_;
00079 }
00080 
00081 // Set the destination address for this RAPI session.
00082 ACE_INLINE void
00083 ACE_RAPI_Session::dest_addr (const ACE_INET_Addr &dest_addr)
00084 {
00085   this->dest_addr_ = dest_addr;
00086 }
00087 
00088 // Get the source port for this RAPI session.
00089 ACE_INLINE u_short
00090 ACE_RAPI_Session::source_port (void) const
00091 {
00092   return this->source_port_;
00093 }
00094 
00095 // Set the source port for this RAPI session.
00096 ACE_INLINE void
00097 ACE_RAPI_Session::source_port (const u_short &source_port)
00098 {
00099   this->source_port_ = source_port;
00100 }
00101 
00102 // RAPI version. Returned value = 100 * major-version + minor-version.
00103 ACE_INLINE int
00104 ACE_RAPI_Session::version (void)
00105 {
00106   return 0;
00107 }
00108 
00109 #endif /* ACE_HAS_RAPI */
00110 
00111 ACE_INLINE
00112 ACE_GQoS_Session::~ACE_GQoS_Session (void)
00113 {
00114   ACE_TRACE ("ACE_GQoS_Session::~ACE_GQoS_Session");
00115 }
00116 
00117 // Returns the QoS for this GQoS session.
00118 ACE_INLINE ACE_QoS
00119 ACE_GQoS_Session::qos (void) const
00120 {
00121   return this->qos_;
00122 }
00123 
00124 // Overloaded method to set the QoS for this session object. Does not
00125 // interfere with the underlying socket QoS.
00126 ACE_INLINE void
00127 ACE_GQoS_Session::qos (const ACE_QoS &ace_qos)
00128 {
00129   this->qos_ = ace_qos;
00130 }
00131 
00132 // Get the GQoS session id.
00133 ACE_INLINE int
00134 ACE_GQoS_Session::session_id (void) const
00135 {
00136   return this->session_id_;
00137 }
00138 
00139 // Set the GQoS session id.
00140 ACE_INLINE void
00141 ACE_GQoS_Session::session_id (const int session_id)
00142 {
00143   this->session_id_ = session_id;
00144 }
00145 
00146 // Get the underlying file desciptor for RSVP events.
00147 // Currently returns 0 because GQoS does not have a special
00148 // descriptor for QoS events.
00149 ACE_INLINE ACE_HANDLE
00150 ACE_GQoS_Session::rsvp_events_handle (void)
00151 {
00152   return 0;
00153 }
00154 
00155 // Get the End Point Type (Sender/Receiver/Both).
00156 ACE_INLINE ACE_QoS_Session::ACE_End_Point_Type
00157 ACE_GQoS_Session::flags (void) const
00158 {
00159   return this->flags_;
00160 }
00161 
00162 // Set the End Point Type (Sender/Receiver/Both).
00163 ACE_INLINE void
00164 ACE_GQoS_Session::flags (const ACE_End_Point_Type flags)
00165 {
00166   this->flags_ = flags;
00167 }
00168 
00169 // Get the destination address for this GQoS session.
00170 ACE_INLINE ACE_INET_Addr
00171 ACE_GQoS_Session::dest_addr (void) const
00172 {
00173   return this->dest_addr_;
00174 }
00175 
00176 // Set the destination address for this GQoS session.
00177 ACE_INLINE void
00178 ACE_GQoS_Session::dest_addr (const ACE_INET_Addr &dest_addr)
00179 {
00180   this->dest_addr_ = dest_addr;
00181 }
00182 
00183 // Get the source port for this RAPI session.
00184 ACE_INLINE u_short
00185 ACE_GQoS_Session::source_port (void) const
00186 {
00187   return this->source_port_;
00188 }
00189 
00190 // Set the source port for this RAPI session.
00191 ACE_INLINE void
00192 ACE_GQoS_Session::source_port (const u_short &source_port)
00193 {
00194   this->source_port_ = source_port;
00195 }
00196 
00197 // GQoS version.
00198 ACE_INLINE int
00199 ACE_GQoS_Session::version (void)
00200 {
00201   return 0;
00202 }

Generated on Mon Jun 16 13:17:26 2003 for ACE_QoS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002