# PPPStats

Periodically broadcast updated PPP link statistics. More...

Publicly inherits QObject.

## Public Methods

| PPPStats | ( );

## Protected Methods

virtual void | timerEvent | ( QTimerEvent* e );

## Signals

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

## 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:19