lib/server: Add a note about taking pointer to virtual member function

This commit is contained in:
Povilas Kanapickas 2021-11-01 05:18:49 +02:00
parent b677a0b419
commit 7ab8e0101d
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,8 @@ ClientProxy1_0::parseHandshakeMessage(const UInt8* code)
}
else if (memcmp(code, kMsgDInfo, 4) == 0) {
// future messages get parsed by parseMessage
// NOTE: we're taking address of virtual function here,
// not ClientProxy1_0 implementation of it.
m_parser = &ClientProxy1_0::parseMessage;
if (recvInfo()) {
m_events->addEvent(Event(m_events->forClientProxy().ready(), getEventTarget()));