aboutsummaryrefslogtreecommitdiff
path: root/src/network/networkpacket.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-11-14 17:38:15 +0100
committersfan5 <sfan5@live.de>2019-11-19 20:27:20 +0100
commitc10952b5742ba4364ac7e6fc9f9f2b44c73357b5 (patch)
tree19912e424ec01f59c01cadc23788ad160fae0118 /src/network/networkpacket.h
parent97764600e27f8872768a28ac4a379d1d82f86952 (diff)
downloaddragonfireclient-c10952b5742ba4364ac7e6fc9f9f2b44c73357b5.tar.xz
Rework packet receiving in ServerThread
Notably it tries to receive all queued packets between server steps, not just one.
Diffstat (limited to 'src/network/networkpacket.h')
-rw-r--r--src/network/networkpacket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkpacket.h b/src/network/networkpacket.h
index a8b741374..fc8617651 100644
--- a/src/network/networkpacket.h
+++ b/src/network/networkpacket.h
@@ -35,6 +35,7 @@ public:
~NetworkPacket();
void putRawPacket(u8 *data, u32 datasize, session_t peer_id);
+ void clear();
// Getters
u32 getSize() const { return m_datasize; }