some fixes

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-19 14:01:50 -07:00
parent 8ae384e93f
commit a97bccbf38
17 changed files with 16 additions and 60 deletions
@@ -151,16 +151,6 @@ namespace GridMate
writeBuffer.Write(PackByte<AZ::u64, 0>(value));
}
AZ_INLINE static AZ::u32 CalculatePeerCRC32(const SecureSocketDriver::AddrPtr& from)
{
// Calculate CRC32 from remote address
AZ::u32 port = from->GetPort();
AZ::Crc32 crc;
crc.Add(from->GetIP().c_str());
crc.Add(&port, sizeof(port));
return crc;
}
// Structures
//
struct RecordHeader // 13 bytes = DTLS1_RT_HEADER_LENGTH