Public Member Functions | Private Attributes

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


Constructor & Destructor Documentation

ACE_QoS::ACE_QoS ( void   ) 

Constructor.

Definition at line 303 of file OS_QoS.cpp.

  : sending_flowspec_ (0),
    receiving_flowspec_ (0)
#endif /* ACE_HAS_WINSOCK2 */
{
}


Member Function Documentation

iovec ACE_QoS::provider_specific ( void   )  const

Get the provider specific information.

Definition at line 353 of file OS_QoS.cpp.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  return (iovec&) this->ProviderSpecific;
#else
  ACE_NOTSUP_RETURN (iovec ());
#endif /* ACE_HAS_WINSOCK2 */
}

void ACE_QoS::provider_specific ( const iovec &  ps  ) 

Set the provider specific information.

Definition at line 363 of file OS_QoS.cpp.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  this->ProviderSpecific = (WSABUF) (const_cast <iovec &> (ps));
#else
  ACE_UNUSED_ARG (ps);
#endif /* ACE_HAS_WINSOCK2 */
}

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.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  this->ReceivingFlowspec = (FLOWSPEC) (*fs);
#else
  this->receiving_flowspec_ = fs;
#endif /* ACE_HAS_WINSOCK2 */
}

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.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  return &((ACE_Flow_Spec &) this->ReceivingFlowspec);
#else
  return receiving_flowspec_;
#endif /* ACE_HAS_WINSOCK2 */
}

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.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  return &((ACE_Flow_Spec &) this->SendingFlowspec);
#else
  return this->sending_flowspec_;
#endif /* ACE_HAS_WINSOCK2 */
}

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.

{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
  this->SendingFlowspec = (FLOWSPEC) (*fs);
#else
  this->sending_flowspec_ = fs;
#endif /* ACE_HAS_WINSOCK2 */
}


Member Data Documentation

Definition at line 300 of file OS_QoS.h.

Definition at line 299 of file OS_QoS.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines