Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing with 104 additions and 98 deletions.
Oops, something went wrong.