Wrapper class that holds the sender and receiver flow spec information, which is used by IntServ (RSVP) and DiffServ. More...
#include <OS_QoS.h>
Public Member Functions | |
ACE_QoS (void) | |
Constructor. | |
ACE_Flow_Spec * | sending_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_Spec * | receiving_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_Spec * | sending_flowspec_ |
ACE_Flow_Spec * | receiving_flowspec_ |
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.
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 */ { }
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 */ }
ACE_Flow_Spec* ACE_QoS::receiving_flowspec_ [private] |
ACE_Flow_Spec* ACE_QoS::sending_flowspec_ [private] |