WIP started on reliable messages

This commit is contained in:
Jocke
2016-01-27 18:22:28 +01:00
parent 06f64f8fbf
commit ac0c6ff952
10 changed files with 104 additions and 59 deletions
@@ -7,7 +7,13 @@ struct PlayerDefinition {
::EntityID EntityID = EntityID_Invalid;
std::string Name = "";
boost::asio::ip::udp::endpoint Endpoint;
// The ID of the last sent packet. (Local sequence number)
unsigned int PacketID;
// The ID of the last received packet. (Remote sequence number)
// This is sent as the ackNumber.
unsigned int LastPacketReceivedID;
// The bit pattern of the last 32 received packets.
unsigned int AckBitField;
std::clock_t StopTime;
};