MCPcopy Create free account
hub / github.com/QNapi/qnapi / check

Method check

gui/src/qcumber/qinterprocesschannel.cpp:189–206  ·  view source on GitHub ↗

! \internal */

Source from the content-addressed store, hash-verified

187 \internal
188*/
189void 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

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected