Changeset 8362 in orxonox.OLD for trunk/src/lib/network/connection_monitor.h
- Timestamp:
- Jun 14, 2006, 10:08:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/connection_monitor.h
r8068 r8362 11 11 12 12 #include <map> 13 #include <list> 13 14 14 15 #define N_PACKETS_FOR_PING 20 … … 24 25 void processUnzippedOutgoingPacket( int tick, byte * data, int length, int stateId ); 25 26 void processUnzippedIncomingPacket( int tick, byte * data, int length, int stateId, int ackedState ); 26 27 27 28 void processZippedOutgoingPacket( int tick, byte * data, int length, int stateId ); 28 29 void processZippedIncomingPacket( int tick, byte * data, int length ); 29 30 30 31 void calculatePing(); 31 32 32 33 bool hasTimedOut(); 33 34 34 35 void printStatis(); 35 36 36 37 private: 37 38 float calculateBandWidth( std::map<int,int> packetHistory, int tick ); 38 39 int userId; //!< user's id 39 40 int userId; //!< user's id 40 41 41 42 std::map<int,int> sentStateTicks; 42 43 43 44 std::map<int,int> incomingUnzippedPacketHistory; 44 45 std::map<int,int> outgoingUnzippedPacketHistory; 45 46 46 47 std::map<int,int> incomingZippedPacketHistory; 47 48 std::map<int,int> outgoingZippedPacketHistory; 48 49 49 50 std::list<int> ackDelay; 50 51 int ping; … … 52 53 float incomingUnzippedBandWidth; 53 54 float outgoingUnzippedBandWidth; 54 55 55 56 float incomingZippedBandWidth; 56 57 float outgoingZippedBandWidth; 57 58 58 59 int nIncomingPackets; 59 60 int nOutgoingPackets; 60 61 61 62 int nZIncomingPackets; 62 63 int nZOutgoingPackets; 63 64 64 65 int lastPacketTick; 65 66 66 67 int lastPrintTick; 67 68 };
Note: See TracChangeset
for help on using the changeset viewer.