From 7bce78167b3ef083af5aca9d654cd3c27047b9c6 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 7 Dec 2022 18:42:11 +0100 Subject: [PATCH] mark data const in net interface --- framework/engine/src/mm/services/net_channeled_interface.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/engine/src/mm/services/net_channeled_interface.hpp b/framework/engine/src/mm/services/net_channeled_interface.hpp index ef76de7..b8dc442 100644 --- a/framework/engine/src/mm/services/net_channeled_interface.hpp +++ b/framework/engine/src/mm/services/net_channeled_interface.hpp @@ -50,11 +50,11 @@ namespace MM::Services { public: // send/recv // 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 // !! 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? // has any?