[Python-checkins] CVS: python/dist/src/Doc/lib libtelnetlib.tex,1.7,1.8

Martin v. L?wis loewis@users.sourceforge.net
Thu, 06 Sep 2001 01:51:40 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv25001/Doc/lib

Modified Files:
	libtelnetlib.tex 
Log Message:
Patch #416079: fix the debug string output when receiving telnet commands.
added all the telnet options known to arpa/telnet.h 
added all the options registered with IANA as of today
added the possibility for the user to have it's own option negotiation callback


Index: libtelnetlib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtelnetlib.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** libtelnetlib.tex	2001/07/06 20:23:02	1.7
--- libtelnetlib.tex	2001/09/06 08:51:38	1.8
***************
*** 10,14 ****
  The \module{telnetlib} module provides a \class{Telnet} class that
  implements the Telnet protocol.  See \rfc{854} for details about the
! protocol.
  
  
--- 10,19 ----
  The \module{telnetlib} module provides a \class{Telnet} class that
  implements the Telnet protocol.  See \rfc{854} for details about the
! protocol. In addition, it provides symbolic constants for the protocol
! characters (IAC/DONT/DO/WONT/WILL), and for the telnet options. The
! symbolic names of the telnet options follow the definitions in
! \code{arpa/telnet.h}, with the leading \code{TELOPT_} removed. For
! symbolic names of options which are traditionally not included in
! \code{arpa/telnet.h}, see the module source itself.
  
  
***************
*** 157,160 ****
--- 162,172 ----
  or if more than one expression can match the same input, the
  results are indeterministic, and may depend on the I/O timing.
+ \end{methoddesc}
+ 
+ \begin{methoddesc}{set_option_negotiation_callback}{callback}
+ Each time a telnet option is read on the input flow, this
+ \var{callback} (if set) is called with the following parameters :
+ callback(telnet socket, command (DO/DONT/WILL/WONT), option).  No other
+ action is done afterwards by telnetlib.
  \end{methoddesc}