mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Network cleanup (#6310)
* Move Connection threads to dedicated files + various cleanups * ConnectionReceiveThread::processPacket now uses function pointer table to route MT packet types * Various code style fixes * Code style with clang-format * Various SharedBuffer copy removal * SharedBuffer cannot be copied anymore using Buffer * Fix many SharedBuffer copy (thanks to delete operator)
This commit is contained in:
parent
f6a33a1a7a
commit
3cea7a349a
11 changed files with 1670 additions and 1669 deletions
|
@ -526,9 +526,9 @@ NetworkPacket& NetworkPacket::operator<<(video::SColor src)
|
|||
return *this;
|
||||
}
|
||||
|
||||
Buffer<u8> NetworkPacket::oldForgePacket()
|
||||
SharedBuffer<u8> NetworkPacket::oldForgePacket()
|
||||
{
|
||||
Buffer<u8> sb(m_datasize + 2);
|
||||
SharedBuffer<u8> sb(m_datasize + 2);
|
||||
writeU16(&sb[0], m_command);
|
||||
|
||||
u8* datas = getU8Ptr(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue