Now using first set options message as end of handshake.

This commit is contained in:
crs 2004-02-28 16:00:54 +00:00
parent 1a9ddb9110
commit 3dea8f8c5d
1 changed files with 6 additions and 2 deletions

View File

@ -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
} }