diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-18 09:01:27 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-04-24 20:42:01 +0200 |
commit | c545cc9d7039a89e23de160b1c93adc959eabda5 (patch) | |
tree | 8522a8e09c0b9fa7e3eba8b4becaef15080f5605 /src/network/core/packet.h | |
parent | 470d8b66372ceb5a38ce9823d451bddd2f3eca35 (diff) | |
download | openttd-c545cc9d7039a89e23de160b1c93adc959eabda5.tar.xz |
Codechange: move more logic about packet size validity and reading into Packet
Diffstat (limited to 'src/network/core/packet.h')
-rw-r--r-- | src/network/core/packet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/core/packet.h b/src/network/core/packet.h index c9be4eeb5..6e5c5509c 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -71,7 +71,8 @@ public: void Send_string(const char *data); /* Reading/receiving of packets */ - void ReadRawPacketSize(); + bool HasPacketSizeData() const; + bool ParsePacketSize(); void PrepareToRead(); bool CanReadFromPacket (uint bytes_to_read); |