added some more comment
This commit is contained in:
parent
386ade7cae
commit
21707b0e17
1 changed files with 6 additions and 2 deletions
|
@ -34,6 +34,7 @@ void CSocket::Init ( const quint16 iPortNumber )
|
||||||
|
|
||||||
// initialize the listening socket
|
// initialize the listening socket
|
||||||
bool bSuccess;
|
bool bSuccess;
|
||||||
|
|
||||||
if ( bIsClient )
|
if ( bIsClient )
|
||||||
{
|
{
|
||||||
// Per definition use the port number plus ten for the client to make
|
// Per definition use the port number plus ten for the client to make
|
||||||
|
@ -125,8 +126,11 @@ void CSocket::OnDataReceived()
|
||||||
if ( !( pChannel->GetAddress() == RecHostAddr ) ||
|
if ( !( pChannel->GetAddress() == RecHostAddr ) ||
|
||||||
!pChannel->IsEnabled() )
|
!pChannel->IsEnabled() )
|
||||||
{
|
{
|
||||||
// this is an unknown address, try to parse connection less
|
// this is an unknown address or we are not connected, try to
|
||||||
// message
|
// 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,
|
if ( pConnLessProtocol->ParseConnectionLessMessage ( vecbyRecBuf,
|
||||||
iNumBytesRead,
|
iNumBytesRead,
|
||||||
RecHostAddr ) )
|
RecHostAddr ) )
|
||||||
|
|
Loading…
Reference in a new issue