diff options
author | Robey Pointer <robey@lag.net> | 2004-09-25 21:47:19 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2004-09-25 21:47:19 +0000 |
commit | 12269c0c9b0fc84f5b52134b48001d33f784bb3a (patch) | |
tree | 5a8dbc161ba4042e6dcc25a4297efb1adbd222d5 | |
parent | 3e644a94f17fbf0a683bf298f865cd62694add19 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-89]
fix some Transport docs
document that Transport also would like close() and settimeout() to exist
on the socket-like object passed to the constructor.
-rw-r--r-- | paramiko/transport.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 6b9edc4d..9b171c77 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -63,7 +63,7 @@ class SecurityOptions (object): L{Transport} (but only if you change them before starting the session). If you try to add an algorithm that paramiko doesn't recognize, C{ValueError} will be raised. If you try to assign something besides a - tuple to one of the fields, L{TypeError} will be raised. + tuple to one of the fields, C{TypeError} will be raised. @since: ivysaur """ @@ -181,6 +181,8 @@ class BaseTransport (threading.Thread): - C{recv(int)}: Reads from 1 to C{int} bytes and returns them as a string. Returns 0 or raises C{EOFError} if the stream has been closed. + - C{close()}: Closes the socket. + - C{settimeout(n)}: Sets a (float) timeout on I/O operations. For ease of use, you may also pass in an address (as a tuple) or a host string as the C{sock} argument. (A host string is a hostname with an |