[Python-checkins] python/dist/src/Doc/lib libsocket.tex,1.83,1.84

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Sun Jun 27 20:51:09 EDT 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13892/Doc/lib

Modified Files:
	libsocket.tex 
Log Message:
Added socket.getservbyport(), and make its second argument and that of
getservbyname() optional.  Update the tests and the docs.


Index: libsocket.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsocket.tex,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** libsocket.tex	3 Jun 2004 16:23:23 -0000	1.83
--- libsocket.tex	28 Jun 2004 00:50:35 -0000	1.84
***************
*** 273,280 ****
  \end{funcdesc}
  
! \begin{funcdesc}{getservbyname}{servicename, protocolname}
  Translate an Internet service name and protocol name to a port number
! for that service.  The protocol name should be \code{'tcp'} or
! \code{'udp'}.
  \end{funcdesc}
  
--- 273,286 ----
  \end{funcdesc}
  
! \begin{funcdesc}{getservbyname}{servicename\optional{, protocolname}}
  Translate an Internet service name and protocol name to a port number
! for that service.  The optional protocol name, if given, should be
! \code{'tcp'} or \code{'udp'}, otherwise any protocol will match.
! \end{funcdesc}
! 
! \begin{funcdesc}{getservbyport}{port\optional{, protocolname}}
! Translate an Internet port number and protocol name to a service name
! for that service.  The optional protocol name, if given, should be
! \code{'tcp'} or \code{'udp'}, otherwise any protocol will match.
  \end{funcdesc}
  




More information about the Python-checkins mailing list