TRAFFIC_COUNTER Struct Reference

#include <traffic.h>


Data Fields

unsigned short flags
unsigned short type
unsigned int count
unsigned int avrg_size
unsigned int time_slots


Detailed Description

Counter for traffic.

Definition at line 33 of file traffic.h.


Field Documentation

unsigned short TRAFFIC_COUNTER::flags

Flags. See TC_XXXX definitions.

Definition at line 39 of file traffic.h.

Referenced by buildSummary(), and GNUNET_traffic_poll().

unsigned short TRAFFIC_COUNTER::type

What is the message type that this counter is concerned with?

Definition at line 44 of file traffic.h.

Referenced by buildSummary().

unsigned int TRAFFIC_COUNTER::count

What was the number of messages of this type that the peer processed in the last n time units?

Definition at line 50 of file traffic.h.

Referenced by buildSummary(), and GNUNET_traffic_poll().

unsigned int TRAFFIC_COUNTER::avrg_size

What is the average size of the last "count" messages that the peer processed?

Definition at line 56 of file traffic.h.

Referenced by buildSummary(), and GNUNET_traffic_poll().

unsigned int TRAFFIC_COUNTER::time_slots

In which of the last 32 time units did the peer receive or send a message of this type? The lowest bit (1) corresponds to -31 seconds ago, the highest bit (2^31) corresponds to the current second.

Definition at line 64 of file traffic.h.

Referenced by buildSummary(), and GNUNET_traffic_poll().


The documentation for this struct was generated from the following file:
Generated on Wed Jan 7 02:18:14 2009 for GNUnet by  doxygen 1.5.1