diff Doc/lib/libsocket.tex @ 28330:02ce22830ab9 legacy-trunk

add descriptions of {get,set}defaulttimeout.
author Skip Montanaro <skip@pobox.com>
date Thu, 20 Mar 2003 17:58:12 +0000
parents 203d1412a7e8
children 57e61588571b
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex	Thu Mar 20 17:39:38 2003 +0000
+++ b/Doc/lib/libsocket.tex	Thu Mar 20 17:58:12 2003 +0000
@@ -349,6 +349,20 @@
 support.
 \end{funcdesc}
 
+\begin{funcdesc}{getdefaulttimeout}{}
+Return the default timeout in floating seconds for new socket objects.
+A value of \code{None} indicates that new socket objects have no timeout.
+When the socket module is first imported, the default is \code{None}.
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{setdefaulttimeout}{timeout}
+Set the default timeout in floating seconds for new socket objects.
+A value of \code{None} indicates that new socket objects have no timeout.
+When the socket module is first imported, the default is \code{None}.
+\versionadded{2.3}
+\end{funcdesc}
+
 \begin{datadesc}{SocketType}
 This is a Python type object that represents the socket object type.
 It is the same as \code{type(socket(...))}.