ACE_QoS Class Reference

Wrapper class that holds the sender and receiver flow spec information, which is used by IntServ (RSVP) and DiffServ. More...

#include <OS_QoS.h>

Collaboration diagram for ACE_QoS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_QoS (void)
 Constructor.

ACE_Flow_Specsending_flowspec (void) const
 Get the flow spec for data sending.

void sending_flowspec (ACE_Flow_Spec *fs)
 Set the flow spec for data sending.

ACE_Flow_Specreceiving_flowspec (void) const
 Get the flow spec for data receiving.

void receiving_flowspec (ACE_Flow_Spec *fs)
 Set the flow spec for data receiving.

iovec provider_specific (void) const
 Get the provider specific information.

void provider_specific (const iovec &ps)
 Set the provider specific information.


Private Attributes

ACE_Flow_Specsending_flowspec_
ACE_Flow_Specreceiving_flowspec_

Detailed Description

Wrapper class that holds the sender and receiver flow spec information, which is used by IntServ (RSVP) and DiffServ.

Definition at line 214 of file OS_QoS.h.


Constructor & Destructor Documentation

ACE_QoS::ACE_QoS void   ) 
 

Constructor.

Definition at line 303 of file OS_QoS.cpp.

00306   : sending_flowspec_ (0),
00307     receiving_flowspec_ (0)
00308 #endif /* ACE_HAS_WINSOCK2 */
00309 {
00310 }


Member Function Documentation

void ACE_QoS::provider_specific const iovec ps  ) 
 

Set the provider specific information.

Definition at line 363 of file OS_QoS.cpp.

00364 {
00365 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00366   this->ProviderSpecific = (WSABUF) ((iovec &) ps);
00367 #else
00368   ACE_UNUSED_ARG (ps);
00369 #endif /* ACE_HAS_WINSOCK2 */
00370 }

iovec ACE_QoS::provider_specific void   )  const
 

Get the provider specific information.

Definition at line 353 of file OS_QoS.cpp.

References ACE_NOTSUP_RETURN.

Referenced by ACE_OS::ioctl(), and ACE_OS::join_leaf().

00354 {
00355 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00356   return (iovec&) this->ProviderSpecific;
00357 #else
00358   ACE_NOTSUP_RETURN (iovec ());
00359 #endif /* ACE_HAS_WINSOCK2 */
00360 }

void ACE_QoS::receiving_flowspec ACE_Flow_Spec fs  ) 
 

Set the flow spec for data receiving.

Definition at line 343 of file OS_QoS.cpp.

References receiving_flowspec_.

00344 {
00345 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00346   this->ReceivingFlowspec = (FLOWSPEC) (*fs);
00347 #else
00348   this->receiving_flowspec_ = fs;
00349 #endif /* ACE_HAS_WINSOCK2 */
00350 }

ACE_Flow_Spec * ACE_QoS::receiving_flowspec void   )  const
 

Get the flow spec for data receiving.

Definition at line 333 of file OS_QoS.cpp.

References receiving_flowspec_.

Referenced by ACE_OS::ioctl(), and ACE_OS::join_leaf().

00334 {
00335 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00336   return &((ACE_Flow_Spec &) this->ReceivingFlowspec);
00337 #else
00338   return receiving_flowspec_;
00339 #endif /* ACE_HAS_WINSOCK2 */
00340 }

void ACE_QoS::sending_flowspec ACE_Flow_Spec fs  ) 
 

Set the flow spec for data sending.

Definition at line 323 of file OS_QoS.cpp.

References sending_flowspec_.

00324 {
00325 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00326   this->SendingFlowspec = (FLOWSPEC) (*fs);
00327 #else
00328   this->sending_flowspec_ = fs;
00329 #endif /* ACE_HAS_WINSOCK2 */
00330 }

ACE_Flow_Spec * ACE_QoS::sending_flowspec void   )  const
 

Get the flow spec for data sending.

Definition at line 313 of file OS_QoS.cpp.

References sending_flowspec_.

Referenced by ACE_OS::ioctl(), and ACE_OS::join_leaf().

00314 {
00315 #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
00316   return &((ACE_Flow_Spec &) this->SendingFlowspec);
00317 #else
00318   return this->sending_flowspec_;
00319 #endif /* ACE_HAS_WINSOCK2 */
00320 }


Member Data Documentation

ACE_Flow_Spec* ACE_QoS::receiving_flowspec_ [private]
 

Definition at line 246 of file OS_QoS.h.

Referenced by receiving_flowspec().

ACE_Flow_Spec* ACE_QoS::sending_flowspec_ [private]
 

Definition at line 245 of file OS_QoS.h.

Referenced by sending_flowspec().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:27:27 2006 for ACE by doxygen 1.3.6