MCPcopy Create free account
hub / github.com/KDAB/GammaRay / socketError

Method socketError

client/localclientdevice.cpp:36–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void LocalClientDevice::socketError()
37{
38 switch (m_socket->error()) {
39 case QLocalSocket::ConnectionRefusedError:
40 case QLocalSocket::ServerNotFoundError:
41 case QLocalSocket::SocketAccessError:
42 case QLocalSocket::SocketTimeoutError:
43 case QLocalSocket::ConnectionError:
44 case QLocalSocket::UnknownSocketError:
45 emit transientError();
46 break;
47 default:
48 if (m_tries) {
49 --m_tries;
50 emit transientError();
51 } else {
52 emit persistentError(m_socket->errorString());
53 }
54 break;
55 }
56}

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
errorStringMethod · 0.45

Tested by

no test coverage detected