mirror of https://github.com/SeanOMik/libki.git
net: send_packet_data() needs to be protected
This is required in order to expose it to Python.
This commit is contained in:
parent
e89cdd2ae4
commit
70679afed1
|
@ -59,6 +59,7 @@ namespace net
|
||||||
*/
|
*/
|
||||||
void process_data(const char *data, size_t size);
|
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;
|
virtual void close() = 0;
|
||||||
private:
|
private:
|
||||||
ParticipantType m_type;
|
ParticipantType m_type;
|
||||||
|
@ -69,7 +70,6 @@ namespace net
|
||||||
uint16_t m_incoming_packet_size;
|
uint16_t m_incoming_packet_size;
|
||||||
uint8_t m_shift;
|
uint8_t m_shift;
|
||||||
|
|
||||||
virtual void send_packet_data(const char *data, const size_t size) = 0;
|
|
||||||
virtual void on_packet_available() {};
|
virtual void on_packet_available() {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue