Changeset 8313 for code/branches/kicklib2/src/libraries/network
- Timestamp:
- Apr 23, 2011, 4:52:30 AM (14 years ago)
- Location:
- code/branches/kicklib2/src/libraries/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/src/libraries/network/ClientInformation.cc
r7801 r8313 150 150 } 151 151 152 doubleClientInformation::getPacketLoss(){153 return static_cast< double>(this->peer_->packetLoss)/ENET_PEER_PACKET_LOSS_SCALE;152 float ClientInformation::getPacketLoss(){ 153 return static_cast<float>(this->peer_->packetLoss)/ENET_PEER_PACKET_LOSS_SCALE; 154 154 } 155 155 -
code/branches/kicklib2/src/libraries/network/ClientInformation.h
r7801 r8313 75 75 76 76 uint32_t getRTT(); 77 doublegetPacketLoss();77 float getPacketLoss(); 78 78 79 79 static bool removeClient(unsigned int clientID); -
code/branches/kicklib2/src/libraries/network/Server.cc
r7801 r8313 250 250 * @brief: return packet loss ratio to client (scales from 0 to 1) 251 251 */ 252 doubleServer::getPacketLoss(unsigned int clientID)252 float Server::getPacketLoss(unsigned int clientID) 253 253 { 254 254 assert(ClientInformation::findClient(clientID)); -
code/branches/kicklib2/src/libraries/network/Server.h
r7801 r8313 73 73 unsigned int getRTT(unsigned int clientID); 74 74 virtual void printRTT(); 75 doublegetPacketLoss(unsigned int clientID);75 float getPacketLoss(unsigned int clientID); 76 76 protected: 77 77 void updateGamestate();
Note: See TracChangeset
for help on using the changeset viewer.