Now using first set options message as end of handshake.
This commit is contained in:
parent
1a9ddb9110
commit
3dea8f8c5d
|
@ -136,14 +136,18 @@ CServerProxy::parseHandshakeMessage(const UInt8* code)
|
||||||
infoAcknowledgment();
|
infoAcknowledgment();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (memcmp(code, kMsgCResetOptions, 4) == 0) {
|
else if (memcmp(code, kMsgDSetOptions, 4) == 0) {
|
||||||
resetOptions();
|
setOptions();
|
||||||
|
|
||||||
// handshake is complete
|
// handshake is complete
|
||||||
m_parser = &CServerProxy::parseMessage;
|
m_parser = &CServerProxy::parseMessage;
|
||||||
EVENTQUEUE->addEvent(CEvent(getHandshakeCompleteEvent(), this));
|
EVENTQUEUE->addEvent(CEvent(getHandshakeCompleteEvent(), this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (memcmp(code, kMsgCResetOptions, 4) == 0) {
|
||||||
|
resetOptions();
|
||||||
|
}
|
||||||
|
|
||||||
else if (memcmp(code, kMsgCNoop, 4) == 0) {
|
else if (memcmp(code, kMsgCNoop, 4) == 0) {
|
||||||
// accept and discard no-op
|
// accept and discard no-op
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue