Commit 98430ffe authored by Fred Drake's avatar Fred Drake

Clarify status of connection of a new instance; it *is* connected if

you pass server information to the constructor.  Error noted by Pedro
Diaz Jimenez <diazjimenez@ctv.es>.
parent 80e14e3b
...@@ -12,9 +12,11 @@ protocol. ...@@ -12,9 +12,11 @@ protocol.
\begin{classdesc}{Telnet}{\optional{host\optional{, port}}} \begin{classdesc}{Telnet}{\optional{host\optional{, port}}}
\class{Telnet} represents a connection to a telnet server. The \class{Telnet} represents a connection to a telnet server. The
instance is initially not connected; the \method{open()} method must instance is initially not connected by default; the \method{open()}
be used to establish a connection. Alternatively, the host name and method must be used to establish a connection. Alternatively, the
optional port number can be passed to the constructor, too. host name and optional port number can be passed to the constructor,
to, in which case the connection to the server will be established
before the constructor returns.
Do not reopen an already connected instance. Do not reopen an already connected instance.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment