[Python-checkins] CVS: python/dist/src/Demo/sockets echosvr.py,1.6,1.7
Fred L. Drake
python-dev@python.org
Fri, 25 Aug 2000 09:03:29 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Demo/sockets finger.py,1.4,1.5 ftp.py,1.4,1.5 rpythond.py,1.2,1.3 telnet.py,1.4,1.5 throughput.py,1.5,1.6 udpecho.py,1.4,1.5
- Next message: [Python-checkins] CVS: python/dist/src/Doc/lib liburlparse.tex,1.17,1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Demo/sockets
In directory slayer.i.sourceforge.net:/tmp/cvs-serv23996
Modified Files:
echosvr.py
Log Message:
Jeremy missed a bind() call when updating these demos. ;)
Index: echosvr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/sockets/echosvr.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** echosvr.py 1996/11/27 19:50:37 1.6
--- echosvr.py 2000/08/25 16:03:27 1.7
***************
*** 19,23 ****
port = ECHO_PORT
s = socket(AF_INET, SOCK_STREAM)
! s.bind('', port)
s.listen(1)
conn, (remotehost, remoteport) = s.accept()
--- 19,23 ----
port = ECHO_PORT
s = socket(AF_INET, SOCK_STREAM)
! s.bind(('', port))
s.listen(1)
conn, (remotehost, remoteport) = s.accept()
- Previous message: [Python-checkins] CVS: python/dist/src/Demo/sockets finger.py,1.4,1.5 ftp.py,1.4,1.5 rpythond.py,1.2,1.3 telnet.py,1.4,1.5 throughput.py,1.5,1.6 udpecho.py,1.4,1.5
- Next message: [Python-checkins] CVS: python/dist/src/Doc/lib liburlparse.tex,1.17,1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]