summaryrefslogtreecommitdiff
path: root/src/network/core/packet.h
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-18 09:01:27 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-04-24 20:42:01 +0200
commitc545cc9d7039a89e23de160b1c93adc959eabda5 (patch)
tree8522a8e09c0b9fa7e3eba8b4becaef15080f5605 /src/network/core/packet.h
parent470d8b66372ceb5a38ce9823d451bddd2f3eca35 (diff)
downloadopenttd-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.h3
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);