1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

utility.h: Change Buffer's interface to be more compatible with SharedBuffer's interface, connection.h: use Buffer instead of SharedBuffer in command and event queues

This commit is contained in:
Kahrl
2011-11-07 02:24:44 +01:00
committed by Perttu Ahola
parent fa72e65b59
commit 28660b4c1a
2 changed files with 50 additions and 8 deletions

View File

@@ -430,7 +430,7 @@ struct ConnectionEvent
{
enum ConnectionEventType type;
u16 peer_id;
SharedBuffer<u8> data;
Buffer<u8> data;
bool timeout;
Address address;
@@ -489,7 +489,7 @@ struct ConnectionCommand
Address address;
u16 peer_id;
u8 channelnum;
SharedBuffer<u8> data;
Buffer<u8> data;
bool reliable;
ConnectionCommand(): type(CONNCMD_NONE) {}