mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make Connection::Receive return the data via a SharedBuffer reference, so the caller doesn't have to choose the right buffer size in advance.
Conflicts: src/test.cpp
This commit is contained in:
parent
28660b4c1a
commit
1c98ec94da
5 changed files with 33 additions and 35 deletions
|
@ -551,7 +551,7 @@ public:
|
|||
void Connect(Address address);
|
||||
bool Connected();
|
||||
void Disconnect();
|
||||
u32 Receive(u16 &peer_id, u8 *data, u32 datasize);
|
||||
u32 Receive(u16 &peer_id, SharedBuffer<u8> &data);
|
||||
void SendToAll(u8 channelnum, SharedBuffer<u8> data, bool reliable);
|
||||
void Send(u16 peer_id, u8 channelnum, SharedBuffer<u8> data, bool reliable);
|
||||
void RunTimeouts(float dtime); // dummy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue