Changeset 7778 in orxonox.OLD for branches/network/src/lib/network/connection_monitor.h
- Timestamp:
- May 23, 2006, 4:35:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/connection_monitor.h
r7776 r7778 24 24 void processUnzippedOutgoingPacket( byte * data, int length, int stateId ); 25 25 void processUnzippedIncomingPacket( byte * data, int length, int stateId, int ackedState ); 26 26 void processZippedPacket( ); 27 27 28 28 void calculatePing(); 29 29 30 //TODO 31 bool hasTimedOut(){ return false; return ( lastPacketTick + SECS_TO_TIMEOUT*1000 < SDL_GetTicks() ) && nIncomingPackets > 0; } 32 33 int getMaxPacketSize(); 30 bool hasTimedOut(){ return ( lastPacketTick + SECS_TO_TIMEOUT*1000 < SDL_GetTicks() ) && nIncomingPackets > 0; } 34 31 35 32 private: … … 43 40 std::map<int,int> outgoingUnzippedPacketHistory; 44 41 45 std::map<int,int> incomingZippedPacketHistory;46 std::map<int,int> outgoingZippedPacketHistory;47 48 42 std::list<int> ackDelay; 49 43 int ping; … … 51 45 float incomingUnzippedBandWidth; 52 46 float outgoingUnzippedBandWidth; 53 54 float incomingZippedBandWidth;55 float outgoingZippedBandWidth;56 47 57 48 int nIncomingPackets;
Note: See TracChangeset
for help on using the changeset viewer.