2.3.1 Connection Objects For all connection methods that take a
timeout argument, a value -1 is indefinite, meaning that the
command runs to completion. If this member is set to a value
other than None it should point to a function accepting a single
argument (the connection object). This will make all connection
object methods work asynchronously, with the callback routine
being called upon Note: for reasons beyond my understanding the
callback routine is currently never called. You are advised
against using asynchronous calls for the time being. - Open
(timeout) Open an outgoing connection, waiting at most timeout
seconds for the connection to be established. - Listen (timeout)
Wait for an incoming connection. Stop waiting after timeout
seconds. This call is only meaningful to some tools. - accept
(yesno) Accept (when yesno is non-zero) or reject an incoming
call after - Close (timeout, now) Close a connection. When now
is zero, the close is orderly (i.e. outstanding output is
flushed, etc.) with a timeout