|
ACE
6.5.8
|
Wrapper class that defines the flow spec QoS information, which is used by IntServ (RSVP) and DiffServ. More...
#include <OS_QoS.h>
Public Member Functions | |
| ACE_Flow_Spec (void) | |
| Default constructor. More... | |
| ACE_Flow_Spec (unsigned long token_rate, unsigned long token_bucket_size, unsigned long peak_bandwidth, unsigned long latency, unsigned long delay_variation, ACE_SERVICE_TYPE service_type, unsigned long max_sdu_size, unsigned long minimum_policed_size, int ttl, int priority) | |
| Constructor that initializes all the fields. More... | |
| unsigned long | token_rate (void) const |
| Get the token rate in bytes/sec. More... | |
| void | token_rate (unsigned long tr) |
| Set the token rate in bytes/sec. More... | |
| unsigned long | token_bucket_size (void) const |
| Get the token bucket size in bytes. More... | |
| void | token_bucket_size (unsigned long tbs) |
| Set the token bucket size in bytes. More... | |
| unsigned long | peak_bandwidth (void) const |
| Get the PeakBandwidth in bytes/sec. More... | |
| void | peak_bandwidth (unsigned long pb) |
| Set the PeakBandwidth in bytes/sec. More... | |
| unsigned long | latency (void) const |
| Get the latency in microseconds. More... | |
| void | latency (unsigned long l) |
| Set the latency in microseconds. More... | |
| unsigned long | delay_variation (void) const |
| Get the delay variation in microseconds. More... | |
| void | delay_variation (unsigned long dv) |
| Set the delay variation in microseconds. More... | |
| ACE_SERVICE_TYPE | service_type (void) const |
| Get the service type. More... | |
| void | service_type (ACE_SERVICE_TYPE st) |
| Set the service type. More... | |
| unsigned long | max_sdu_size (void) const |
| Get the maximum SDU size in bytes. More... | |
| void | max_sdu_size (unsigned long mss) |
| Set the maximum SDU size in bytes. More... | |
| unsigned long | minimum_policed_size (void) const |
| Get the minimum policed size in bytes. More... | |
| void | minimum_policed_size (unsigned long mps) |
| Set the minimum policed size in bytes. More... | |
| int | ttl (void) const |
| Get the time-to-live. More... | |
| void | ttl (int t) |
| Set the time-to-live. More... | |
| int | priority (void) const |
| Get the priority. More... | |
| void | priority (int p) |
| Set the priority. More... | |
Private Attributes | |
| unsigned long | token_rate_ |
| unsigned long | token_bucket_size_ |
| unsigned long | peak_bandwidth_ |
| unsigned long | latency_ |
| unsigned long | delay_variation_ |
| ACE_SERVICE_TYPE | service_type_ |
| unsigned long | max_sdu_size_ |
| unsigned long | minimum_policed_size_ |
| int | ttl_ |
| int | priority_ |
Wrapper class that defines the flow spec QoS information, which is used by IntServ (RSVP) and DiffServ.
| ACE_Flow_Spec::ACE_Flow_Spec | ( | void | ) |
Default constructor.
@file OS_QoS.cpp @brief Contains OS specific data structures for QoS networking. @author Craig Rodrigues <crodrigu@bbn.com> ‍/
=============================================================================
ACE_Flow_Spec::ACE_Flow_Spec (unsigned long token_rate, unsigned long token_bucket_size, unsigned long peak_bandwidth, unsigned long latency, unsigned long delay_variation, ACE_SERVICE_TYPE service_type, unsigned long max_sdu_size, unsigned long minimum_policed_size, int ttl, int priority) {
this->token_rate_ = token_rate; this->token_bucket_size_ = token_bucket_size; this->peak_bandwidth_ = peak_bandwidth; this->latency_ = latency; this->delay_variation_ = delay_variation; this->service_type_ = service_type; this->max_sdu_size_ = max_sdu_size; this->minimum_policed_size_ = minimum_policed_size; this->ttl_ = ttl; this->priority_ = priority;
/* defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
| ACE_Flow_Spec::ACE_Flow_Spec | ( | unsigned long | token_rate, |
| unsigned long | token_bucket_size, | ||
| unsigned long | peak_bandwidth, | ||
| unsigned long | latency, | ||
| unsigned long | delay_variation, | ||
| ACE_SERVICE_TYPE | service_type, | ||
| unsigned long | max_sdu_size, | ||
| unsigned long | minimum_policed_size, | ||
| int | ttl, | ||
| int | priority | ||
| ) |
Constructor that initializes all the fields.
| void ACE_Flow_Spec::delay_variation | ( | unsigned long | dv | ) |
Set the delay variation in microseconds.
| unsigned long ACE_Flow_Spec::delay_variation | ( | void | ) | const |
Get the delay variation in microseconds.
| void ACE_Flow_Spec::latency | ( | unsigned long | l | ) |
Set the latency in microseconds.
| unsigned long ACE_Flow_Spec::latency | ( | void | ) | const |
Get the latency in microseconds.
| void ACE_Flow_Spec::max_sdu_size | ( | unsigned long | mss | ) |
Set the maximum SDU size in bytes.
| unsigned long ACE_Flow_Spec::max_sdu_size | ( | void | ) | const |
Get the maximum SDU size in bytes.
| void ACE_Flow_Spec::minimum_policed_size | ( | unsigned long | mps | ) |
Set the minimum policed size in bytes.
| unsigned long ACE_Flow_Spec::minimum_policed_size | ( | void | ) | const |
Get the minimum policed size in bytes.
| void ACE_Flow_Spec::peak_bandwidth | ( | unsigned long | pb | ) |
Set the PeakBandwidth in bytes/sec.
| unsigned long ACE_Flow_Spec::peak_bandwidth | ( | void | ) | const |
Get the PeakBandwidth in bytes/sec.
| void ACE_Flow_Spec::priority | ( | int | p | ) |
Set the priority.
| int ACE_Flow_Spec::priority | ( | void | ) | const |
Get the priority.
| void ACE_Flow_Spec::service_type | ( | ACE_SERVICE_TYPE | st | ) |
Set the service type.
| ACE_SERVICE_TYPE ACE_Flow_Spec::service_type | ( | void | ) | const |
Get the service type.
| void ACE_Flow_Spec::token_bucket_size | ( | unsigned long | tbs | ) |
Set the token bucket size in bytes.
| unsigned long ACE_Flow_Spec::token_bucket_size | ( | void | ) | const |
Get the token bucket size in bytes.
| void ACE_Flow_Spec::token_rate | ( | unsigned long | tr | ) |
Set the token rate in bytes/sec.
| unsigned long ACE_Flow_Spec::token_rate | ( | void | ) | const |
Get the token rate in bytes/sec.
| void ACE_Flow_Spec::ttl | ( | int | t | ) |
Set the time-to-live.
| int ACE_Flow_Spec::ttl | ( | void | ) | const |
Get the time-to-live.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.16