summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2007-11-09 22:51:21 -0800
committerRobey Pointer <robey@lag.net>2007-11-09 22:51:21 -0800
commit645bdfd861ba62ff39ab0d9fbcf5ffc53a86f87f (patch)
treecc594821801d22769fde06ba1214f4b391d0ecf4
parent9bc7c13ad71ca3b2a61b258c49377cc954670434 (diff)
[project @ robey@lag.net-20071110065121-76ooutayf5dvvuqh]
add get_transport() to fetch the Transport from an SSHClient.
-rw-r--r--paramiko/client.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 1a4582e8..594bba83 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -348,6 +348,17 @@ class SSHClient (object):
@rtype: L{SFTPClient}
"""
return self._transport.open_sftp_client()
+
+ def get_transport(self):
+ """
+ Return the underlying L{Transport} object for this SSH connection.
+ This can be used to perform lower-level tasks, like opening specific
+ kinds of channels.
+
+ @return: the Transport for this connection
+ @rtype: L{Transport}
+ """
+ return self._transport
def _auth(self, username, password, pkey, key_filename):
"""