latest.ipv8.messaging.interfaces.network_stats
Module Contents
Classes
Represents an individual network statistic. This is used to compose the overall community statistics. |
- class latest.ipv8.messaging.interfaces.network_stats.NetworkStat(identifier: int)
Represents an individual network statistic. This is used to compose the overall community statistics.
- Includes the following properties for the given statistic:
identifier: char
num_up: integer
num_down: integer
bytes_up: integer
bytes_down: integer
first_measured_up: float
first_measured_down: float
last_measured_up: float
last_measured_down: float
- add_sent_stat(timestamp: float, num_bytes: int) None
Callback for when a message of a given number of bytes is sent at a given timestamp.