Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv6858
Modified Files:
sockets.tex
Log Message:
[Patch #584296 from Gerhard Häring] Fix 2-arg connect(), and a typo
Update URL
Index: sockets.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/sockets.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** sockets.tex 9 Dec 1999 12:58:18 -0000 1.3
--- sockets.tex 22 Jul 2002 12:13:36 -0000 1.4
***************
*** 22,26 ****
This document is available in several formats, including PostScript,
PDF, HTML and plain ASCII, from the Python HOWTO page at
! \url{http://www.python.org/doc/howto/}.
\end{abstract}
--- 22,26 ----
This document is available in several formats, including PostScript,
PDF, HTML and plain ASCII, from the Python HOWTO page at
! \url{http://py-howto.sf.net/}.
\end{abstract}
***************
*** 80,84 ****
#now connect to the web server on port 80
# - the normal http port
! s.connect("www.mcmillan-inc.com", 80)
\end{verbatim}
--- 80,84 ----
#now connect to the web server on port 80
# - the normal http port
! s.connect(("www.mcmillan-inc.com", 80))
\end{verbatim}
***************
*** 94,98 ****
\begin{verbatim}
#create an INET, STREAMing socket
! serverscket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to a public host,
--- 94,98 ----
\begin{verbatim}
#create an INET, STREAMing socket
! serversocket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to a public host,
|