This commit is contained in:
Volker Fischer 2006-03-08 21:18:20 +00:00
parent bf678d5c2a
commit 30b6fcdf3d
3 changed files with 9 additions and 8 deletions

View file

@ -337,16 +337,19 @@ for (int i = 0; i < BLOCK_SIZE_SAMPLES; i++)
}
}
Mutex.unlock (); /* put mutex unlock */
// check if channel was not connected
const bool bChanWasNotConnected = !IsConnected();
// reset time-out counter
iConTimeOut = CON_TIME_OUT_CNT_MAX;
// if channel was not connected, emit signal to inform that new
// connection was established
if ( iConTimeOut == 0 )
if ( bChanWasNotConnected )
{
emit NewConnection();
}
// reset time-out counter
iConTimeOut = CON_TIME_OUT_CNT_MAX;
}
else
{

View file

@ -51,8 +51,7 @@ for ( int i = 0; i < vecMessage.Size (); i++ ) {
// the protocol queries me to call the function to send the message
// send it through the network
Socket.SendPacket ( vecbyDataConv,
Channel.GetAddress () );
Socket.SendPacket ( vecbyDataConv, Channel.GetAddress () );
}
bool CClient::SetServerAddr(QString strNAddr)

View file

@ -60,8 +60,7 @@ for ( int i = 0; i < vecMessage.Size (); i++ ) {
// the protocol queries me to call the function to send the message
// send it through the network
Socket.SendPacket ( vecbyDataConv,
ChannelSet.GetAddress ( iChID ) );
Socket.SendPacket ( vecbyDataConv, ChannelSet.GetAddress ( iChID ) );
}
void CServer::Start ()