From 3dea8f8c5db980b1e576ff417cc20bcd547b5c0d Mon Sep 17 00:00:00 2001 From: crs Date: Sat, 28 Feb 2004 16:00:54 +0000 Subject: [PATCH] Now using first set options message as end of handshake. --- lib/client/CServerProxy.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/client/CServerProxy.cpp b/lib/client/CServerProxy.cpp index 88ae2c9d..c72dc12f 100644 --- a/lib/client/CServerProxy.cpp +++ b/lib/client/CServerProxy.cpp @@ -136,14 +136,18 @@ CServerProxy::parseHandshakeMessage(const UInt8* code) infoAcknowledgment(); } - else if (memcmp(code, kMsgCResetOptions, 4) == 0) { - resetOptions(); + else if (memcmp(code, kMsgDSetOptions, 4) == 0) { + setOptions(); // handshake is complete m_parser = &CServerProxy::parseMessage; EVENTQUEUE->addEvent(CEvent(getHandshakeCompleteEvent(), this)); } + else if (memcmp(code, kMsgCResetOptions, 4) == 0) { + resetOptions(); + } + else if (memcmp(code, kMsgCNoop, 4) == 0) { // accept and discard no-op }