From 12269c0c9b0fc84f5b52134b48001d33f784bb3a Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sat, 25 Sep 2004 21:47:19 +0000 Subject: [PATCH] [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. --- paramiko/transport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paramiko/transport.py b/paramiko/transport.py index 6b9edc4..9b171c7 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