forked from qt-creator/qt-creator
SSH: Export information about the underlying TCP connection.
Change-Id: I62bce3b563b6aba481642fac0d427c0f0d3b2ddd Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -167,9 +167,12 @@ SshConnectionParameters SshConnection::connectionParameters() const
|
||||
return d->m_connParams;
|
||||
}
|
||||
|
||||
QAbstractSocket::NetworkLayerProtocol SshConnection::ipProtocolVersion() const
|
||||
SshConnectionInfo SshConnection::connectionInfo() const
|
||||
{
|
||||
return d->m_socket->localAddress().protocol();
|
||||
QTC_ASSERT(state() == Connected, return SshConnectionInfo());
|
||||
|
||||
return SshConnectionInfo(d->m_socket->localAddress(), d->m_socket->localPort(),
|
||||
d->m_socket->peerAddress(), d->m_socket->peerPort());
|
||||
}
|
||||
|
||||
SshConnection::~SshConnection()
|
||||
|
||||
Reference in New Issue
Block a user