mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-04-16 08:32:57 +02:00
mark data const in net interface
This commit is contained in:
parent
a45da5c2b0
commit
7bce78167b
@ -50,11 +50,11 @@ namespace MM::Services {
|
|||||||
public: // send/recv
|
public: // send/recv
|
||||||
|
|
||||||
// sends a packet of max getMaxPacketSize() bytes
|
// sends a packet of max getMaxPacketSize() bytes
|
||||||
virtual bool sendPacket(peer_id peer, channel_id channel, uint8_t* data, size_t data_size) = 0;
|
virtual bool sendPacket(peer_id peer, channel_id channel, const uint8_t* data, size_t data_size) = 0;
|
||||||
|
|
||||||
// sends a packet, automatically split if too big
|
// sends a packet, automatically split if too big
|
||||||
// !! only on lossless channels
|
// !! only on lossless channels
|
||||||
virtual bool sendPacketLarge(peer_id peer, channel_id channel, uint8_t* data, size_t data_size) = 0;
|
virtual bool sendPacketLarge(peer_id peer, channel_id channel, const uint8_t* data, size_t data_size) = 0;
|
||||||
|
|
||||||
// TODO: broadcast?
|
// TODO: broadcast?
|
||||||
// has any?
|
// has any?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user