! \internal */
| 187 | \internal |
| 188 | */ |
| 189 | void QInterProcessChannel::check() { |
| 190 | // qDebug("checking connection..."); |
| 191 | |
| 192 | QTcpSocket *pSocket = new QTcpSocket(this); |
| 193 | pSocket->connectToHost(m_addr, m_port); |
| 194 | |
| 195 | if (pSocket->error() != -1) { |
| 196 | emit connectionLost(); |
| 197 | return; |
| 198 | } |
| 199 | |
| 200 | pSocket->waitForConnected(WAIT_TIMEOUT); |
| 201 | |
| 202 | if (pSocket->error() != -1) { |
| 203 | emit connectionLost(); |
| 204 | return; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /*! |
| 209 | \internal |