fix: 32 bit protocol

This commit is contained in:
2021-09-01 16:25:38 +02:00
parent 056534028d
commit 26f060b334
5 changed files with 10 additions and 10 deletions

View File

@@ -33,9 +33,9 @@ bool Connexion::updateSocket(){
return false;
DataBuffer buffer;
m_Socket.Receive(buffer, sizeof(std::size_t));
m_Socket.Receive(buffer, sizeof(std::uint64_t));
if (buffer.GetSize() > 0){
std::size_t packetLenght;
std::uint64_t packetLenght;
buffer >> packetLenght;
m_Socket.Receive(buffer, packetLenght);