Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae08853

Browse files
committed
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 <[email protected]>.
1 parent 4e751c3 commit ae08853

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/lib/libtelnetlib.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ \section{\module{telnetlib} ---
1212

1313
\begin{classdesc}{Telnet}{\optional{host\optional{, port}}}
1414
\class{Telnet} represents a connection to a telnet server. The
15-
instance is initially not connected; the \method{open()} method must
16-
be used to establish a connection. Alternatively, the host name and
17-
optional port number can be passed to the constructor, too.
15+
instance is initially not connected by default; the \method{open()}
16+
method must be used to establish a connection. Alternatively, the
17+
host name and optional port number can be passed to the constructor,
18+
to, in which case the connection to the server will be established
19+
before the constructor returns.
1820

1921
Do not reopen an already connected instance.
2022

0 commit comments

Comments
 (0)