SSH: Allow querying of IP protocol version.

Change-Id: I97c8b89da8c8d46afb0bdc840627e142567d5d98
Reviewed-on: http://codereview.qt-project.org/5981
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2011-10-04 14:21:37 +02:00
parent 1d4f0cfc27
commit 1c52bed5d0
2 changed files with 7 additions and 0 deletions

View File

@@ -165,6 +165,11 @@ SshConnectionParameters SshConnection::connectionParameters() const
return d->m_connParams;
}
QAbstractSocket::NetworkLayerProtocol SshConnection::ipProtocolVersion() const
{
return d->m_socket->localAddress().protocol();
}
SshConnection::~SshConnection()
{
disconnect();