MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / isConnected

Method isConnected

Plugins/Telnet/QTelnet.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool QTelnet::isConnected() const
59{
60 if(m_socketType == TCP)
61 return m_tcpSocket.state() == QAbstractSocket::ConnectedState;
62 else if(m_socketType == WEBSOCKET || m_socketType == SECUREWEBSOCKET)
63 return m_webSocket.state() == QAbstractSocket::ConnectedState;
64
65 return false;
66}
67
68void QTelnet::connectToHost(const QString &host, quint16 port)
69{

Callers 1

IsConnectedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected