mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
lib/server: Add a note about taking pointer to virtual member function
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user