Codechange: encapsulate reading the size of a Packet
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user