Periodically broadcast updated PPP link statistics. More...
Publicly inherits QObject.
PPPStats | ( ); |
virtual void | timerEvent | ( QTimerEvent* e ); |
void | changeStats | ( unsigned int rxDelta, unsigned int txDelta, unsigned int rxTotal, unsigned int txTotal ); |
void | linkDown | ( ); |
bool | _isUp; | True if the PPP link is up. |
int | _retryId; | Link retry timer id. |
unsigned int | _rxTotal; | Most recent total number of bytes read. |
int | _s; | The socket used to query the PPP stats. |
unsigned int | _txTotal; | Most recent total number of bytes sent. |
Periodically broadcast updated PPP link statistics.
When this object is created, it is passed a statistics interval in seconds. Once per interval, the object will query the PPP driver for its statistics. The stats are broadcast using the changeStats() signal. The number of bytes transmitted and received during the interval are reported, as well as the total number of bytes transmitted and received.Create a PPPStats object that polls for PPP statistics.
Poll the PPP driver for its stats.
Emitted each time after the PPP driver stats are collected.
This signal carries the number of bytes transmitted and received during the last interval, and the total number of bytes transmitted and received.
Emitted when it is detected that the PPP link has gone down.