| 36 | } |
| 37 | |
| 38 | QString QTelnet::peerInfo() const |
| 39 | { |
| 40 | if(m_socketType == TCP) |
| 41 | return m_tcpSocket.peerName()+" ("+m_tcpSocket.peerAddress().toString()+" ):"+m_tcpSocket.peerPort(); |
| 42 | else if(m_socketType == WEBSOCKET || m_socketType == SECUREWEBSOCKET) |
| 43 | return m_webSocket.peerName()+" ("+m_webSocket.peerAddress().toString()+" ):"+QString::number(m_webSocket.peerPort()); |
| 44 | |
| 45 | return QString(); |
| 46 | } |
| 47 | |
| 48 | QString QTelnet::peerName() const |
| 49 | { |
no test coverage detected