minetest/src/network
Loic Blot 1fe4256462 Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.
Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket
Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing
This remove a long existing memory copy
Also check the packet size directly into Connection::Receive instead of packet processing
2015-03-31 11:01:08 +02:00
..
clientopcodes.cpp Prepare Protocol v25 init & authentication. 2015-03-13 20:23:03 +01:00
clientopcodes.h [Patch 2/4] Network rework: packet writing, sending and cleanups 2015-02-16 11:00:55 +01:00
clientpackethandler.cpp Change error_message from wstring to string 2015-03-27 20:24:04 -04:00
CMakeLists.txt Clean up and tweak build system 2015-03-27 15:00:48 -04:00
connection.cpp Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>. 2015-03-31 11:01:08 +02:00
connection.h Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>. 2015-03-31 11:01:08 +02:00
networkpacket.cpp Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>. 2015-03-31 11:01:08 +02:00
networkpacket.h Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>. 2015-03-31 11:01:08 +02:00
networkprotocol.h Change error_message from wstring to string 2015-03-27 20:24:04 -04:00
serveropcodes.cpp Prepare Protocol v25 init & authentication. 2015-03-13 20:23:03 +01:00
serveropcodes.h [Patch 2/4] Network rework: packet writing, sending and cleanups 2015-02-16 11:00:55 +01:00
serverpackethandler.cpp Clean up and tweak build system 2015-03-27 15:00:48 -04:00