#include <socketengine.h>
|
unsigned long | TotalEvents |
|
unsigned long | ReadEvents |
|
unsigned long | WriteEvents |
|
unsigned long | ErrorEvents |
|
Socket engine statistics: count of various events, bandwidth usage
◆ Statistics()
SocketEngine::Statistics::Statistics |
( |
| ) |
|
|
inline |
Constructor, initializes member vars except indata and outdata because those are set to 0 in CheckFlush() the first time Update() or GetBandwidth() is called.
◆ GetBandwidth()
void SocketEngine::Statistics::GetBandwidth |
( |
float & |
kbitpersec_in, |
|
|
float & |
kbitpersec_out, |
|
|
float & |
kbitpersec_total |
|
) |
| const |
Get data transfer statistics.
- Parameters
-
kbitpersec_in | Filled with incoming traffic in this second in kbit/s. |
kbitpersec_out | Filled with outgoing traffic in this second in kbit/s. |
kbitpersec_total | Filled with total traffic in this second in kbit/s. |
◆ UpdateReadCounters()
void SocketEngine::Statistics::UpdateReadCounters |
( |
int |
len_in | ) |
|
Update counters for network data received. This should be called after every read-type syscall.
- Parameters
-
len_in | Number of bytes received, or -1 for error, as typically returned by a read-style syscall. |
◆ UpdateWriteCounters()
void SocketEngine::Statistics::UpdateWriteCounters |
( |
int |
len_out | ) |
|
Update counters for network data sent. This should be called after every write-type syscall.
- Parameters
-
len_out | Number of bytes sent, or -1 for error, as typically returned by a read-style syscall. |
The documentation for this class was generated from the following files: