Logo Search packages:      
Sourcecode: qnapi version File versions  Download package

void QInterProcessChannel::check (  )  [private, slot]

For internal use only.

Definition at line 202 of file qinterprocesschannel.cpp.

Referenced by run().

{
      //qDebug("checking connection...");
      
      QTcpSocket *pSocket = new QTcpSocket(this);
      pSocket->connectToHost(m_addr, m_port);
      
      if ( pSocket->error() != -1 )
      {
            emit connectionLost();
            return;
      }
      
      pSocket->waitForConnected(WAIT_TIMEOUT);
      
      if ( pSocket->error() != -1 )
      {
            emit connectionLost();
            return;
      }
}


Generated by  Doxygen 1.6.0   Back to index