PPPStats

Periodically broadcast updated PPP link statistics. More...

Publicly inherits QObject.

Public Methods

PPPStats( );

Protected Methods

virtual voidtimerEvent( QTimerEvent* e );

Signals

voidchangeStats( unsigned int rxDelta, unsigned int txDelta, unsigned int rxTotal, unsigned int txTotal );
voidlinkDown( );

Private Data Members

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.

Detailed Documentation

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.

Public Methods Documentation

PPPStats ( );

Create a PPPStats object that polls for PPP statistics.

Protected Methods Documentation

virtual void timerEvent ( QTimerEvent* e );

Poll the PPP driver for its stats.

Signals Documentation

void changeStats ( unsigned int rxDelta, unsigned int txDelta, unsigned int rxTotal, unsigned int txTotal );

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.

void linkDown ( );

Emitted when it is detected that the PPP link has gone down.


Return to Index.
Automatically generated on Oct 27 22:18