From eeb5b5c14b8171d1c1018d5ae1b7e43cb07d1333 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Wed, 11 Apr 2018 01:20:23 +0100 Subject: [PATCH] net: Make Participant::on_packet_available protected Technically we don't want derived classes to be able to call this, but it's needed for the Python side to be able to override it. --- include/ki/protocol/net/Participant.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ki/protocol/net/Participant.h b/include/ki/protocol/net/Participant.h index 826e8aa..67a11aa 100644 --- a/include/ki/protocol/net/Participant.h +++ b/include/ki/protocol/net/Participant.h @@ -60,6 +60,7 @@ namespace net void process_data(const char *data, size_t size); virtual void send_packet_data(const char *data, const size_t size) = 0; + virtual void on_packet_available() {}; virtual void close() = 0; private: ParticipantType m_type; @@ -69,8 +70,6 @@ namespace net uint16_t m_start_signal; uint16_t m_incoming_packet_size; uint8_t m_shift; - - virtual void on_packet_available() {}; }; } }