From 21707b0e17e29c1480ea5aaeed8c1b2744854bf9 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Fri, 10 May 2013 07:57:21 +0000 Subject: [PATCH] added some more comment --- src/socket.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/socket.cpp b/src/socket.cpp index 4727dd86..eed0fa7e 100755 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -34,6 +34,7 @@ void CSocket::Init ( const quint16 iPortNumber ) // initialize the listening socket bool bSuccess; + if ( bIsClient ) { // Per definition use the port number plus ten for the client to make @@ -125,8 +126,11 @@ void CSocket::OnDataReceived() if ( !( pChannel->GetAddress() == RecHostAddr ) || !pChannel->IsEnabled() ) { - // this is an unknown address, try to parse connection less - // message + // this is an unknown address or we are not connected, try to + // parse connection less message (we have this case when we, + // e.g., open the connection setup dialog since then we are not + // yet connected but talk to the central server with the + // connection less protocol) if ( pConnLessProtocol->ParseConnectionLessMessage ( vecbyRecBuf, iNumBytesRead, RecHostAddr ) )