Last change
on this file since 5581 was
5581,
checked in by snellen, 18 years ago
|
synchronizeable updated, connection_monitor.h and connection_monitor.cc updated
|
File size:
762 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file connection_monitor.h |
---|
3 | \brief provides information about the quality of a connection. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _CONNECTION_MONITOR_H |
---|
7 | #define _CONNECTION_MONITOR_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include "netdefs.h" |
---|
11 | |
---|
12 | class ConnectionMonitor : virtual public BaseObject |
---|
13 | { |
---|
14 | public: |
---|
15 | ConnectionMonitor(); |
---|
16 | ~ConnectionMonitor(); |
---|
17 | |
---|
18 | void processPacket(byte* packet); |
---|
19 | |
---|
20 | |
---|
21 | private: |
---|
22 | |
---|
23 | |
---|
24 | void displayStatistic(); |
---|
25 | |
---|
26 | unsigned int totalReceivedPackets; |
---|
27 | unsigned int totalLostPackets; |
---|
28 | unsigned int packetSize; |
---|
29 | |
---|
30 | unsigned int currentPacketID; |
---|
31 | unsigned int currentDatarate; |
---|
32 | unsigned int timeForLastFewPackets; |
---|
33 | |
---|
34 | }; |
---|
35 | |
---|
36 | #endif |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.