mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Rework packet receiving in ServerThread
Notably it tries to receive all queued packets between server steps, not just one.
This commit is contained in:
parent
97764600e2
commit
c10952b574
5 changed files with 86 additions and 24 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue