Codechange: encapsulate reading the size of a Packet

This commit is contained in:
Rubidium
2021-04-18 12:29:34 +02:00
committed by rubidium42
parent 6f161f6559
commit f71fb0f54a
5 changed files with 17 additions and 4 deletions

View File

@@ -77,6 +77,7 @@ public:
/* Reading/receiving of packets */
bool HasPacketSizeData() const;
bool ParsePacketSize();
size_t Size() const;
void PrepareToRead();
bool CanReadFromPacket(size_t bytes_to_read, bool close_connection = false);