#include <socketgroup.h>
◆ calcAllowance()
void net::SocketGroup::calcAllowance |
( |
bt::TimeStamp |
now | ) |
|
Calculate the allowance for this group
- Parameters
-
◆ download()
bool net::SocketGroup::download |
( |
Uint32 & |
global_allowance, |
|
|
bt::TimeStamp |
now |
|
) |
| |
Process all the sockets in the vector for download.
- Parameters
-
global_allowance | How much the group can do, this will be updated, 0 means no limit |
now | Current time |
- Returns
- true if we can download more data, false otherwise
◆ getAssuredAllowance()
Uint32 net::SocketGroup::getAssuredAllowance |
( |
| ) |
const |
|
inline |
◆ setAssuredRate()
void net::SocketGroup::setAssuredRate |
( |
Uint32 |
as | ) |
|
|
inline |
Set the assured rate for the gorup in bytes per sec
- Parameters
-
Definition at line 97 of file socketgroup.h.
◆ setLimit()
void net::SocketGroup::setLimit |
( |
Uint32 |
lim | ) |
|
|
inline |
Set the group limit in bytes per sec
- Parameters
-
Definition at line 91 of file socketgroup.h.
◆ upload()
bool net::SocketGroup::upload |
( |
Uint32 & |
global_allowance, |
|
|
bt::TimeStamp |
now |
|
) |
| |
Process all the sockets in the vector for upload
- Parameters
-
global_allowance | How much the group can do, this will be updated, 0 means no limit |
now | Current time |
- Returns
- true if we can upload more data, false otherwise
The documentation for this class was generated from the following file: