net: send_packet_data() needs to be protected

This is required in order to expose it to Python.
This commit is contained in:
Pythonology 2018-04-09 22:34:50 -04:00 committed by GitHub
parent e89cdd2ae4
commit 70679afed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,6 +59,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 close() = 0;
private:
ParticipantType m_type;
@ -69,7 +70,6 @@ namespace net
uint16_t m_incoming_packet_size;
uint8_t m_shift;
virtual void send_packet_data(const char *data, const size_t size) = 0;
virtual void on_packet_available() {};
};
}