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

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 Methods

 ACE_QoS (void)
 Constructor. More...

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

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

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

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

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

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


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 206 of file OS_QoS.h.


Constructor & Destructor Documentation

ACE_QoS::ACE_QoS void   
 

Constructor.

Definition at line 301 of file OS_QoS.cpp.

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


Member Function Documentation

void ACE_QoS::provider_specific const iovec   ps
 

Set the provider specific information.

Definition at line 361 of file OS_QoS.cpp.

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

iovec ACE_QoS::provider_specific void    const
 

Get the provider specific information.

Definition at line 351 of file OS_QoS.cpp.

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

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

void ACE_QoS::receiving_flowspec ACE_Flow_Spec   fs
 

Set the flow spec for data receiving.

Definition at line 341 of file OS_QoS.cpp.

References receiving_flowspec_.

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

ACE_Flow_Spec * ACE_QoS::receiving_flowspec void    const
 

Get the flow spec for data receiving.

Definition at line 331 of file OS_QoS.cpp.

References receiving_flowspec_.

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

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

void ACE_QoS::sending_flowspec ACE_Flow_Spec   fs
 

Set the flow spec for data sending.

Definition at line 321 of file OS_QoS.cpp.

References sending_flowspec_.

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

ACE_Flow_Spec * ACE_QoS::sending_flowspec void    const
 

Get the flow spec for data sending.

Definition at line 311 of file OS_QoS.cpp.

References sending_flowspec_.

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

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


Member Data Documentation

ACE_Flow_Spec* ACE_QoS::receiving_flowspec_ [private]
 

Definition at line 238 of file OS_QoS.h.

Referenced by receiving_flowspec.

ACE_Flow_Spec* ACE_QoS::sending_flowspec_ [private]
 

Definition at line 237 of file OS_QoS.h.

Referenced by sending_flowspec.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:54:35 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002