Re: Can't get UDP example to work

2009-07-26 Thread Steven D'Aprano
On Sun, 26 Jul 2009 12:40:39 -0700, Paul Barry wrote: > On Jul 26, 12:53 pm, Roy Smith wrote: >> In article >> <148abf0f-c9e4-4156-8f16-e4e5615d3...@s6g2000vbp.googlegroups.com>, >>  Paul Barry wrote: >> >> > host = '127.0.0.1'           # Bind to all interfaces >> >> This threw me off the track

Re: Can't get UDP example to work

2009-07-26 Thread Roy Smith
In article <2f578124-1ae3-45a5-a0c9-b8b05c0b5...@p23g2000vbl.googlegroups.com>, Paul Barry wrote: > In this case, I think he's trying to illustrate how the UDP example > compares to the TCP example from the previous section, which is why he > choose to keep the methods the same. I suppose,

Re: Can't get UDP example to work

2009-07-26 Thread Paul Barry
On Jul 26, 11:07 am, MRAB wrote: > Paul Barry wrote: > > I'm trying to get one of the examples from Foundation of Python > > Network Programming to work.  Specifically this is the UDP example > > from Ch 3.  First there is the server: > > > #!/usr/bin/env python > > # UDP Echo Server - Chapter 3 -

Re: Can't get UDP example to work

2009-07-26 Thread Paul Barry
On Jul 26, 12:53 pm, Roy Smith wrote: > In article > <148abf0f-c9e4-4156-8f16-e4e5615d3...@s6g2000vbp.googlegroups.com>, >  Paul Barry wrote: > > > host = '127.0.0.1'           # Bind to all interfaces > > This threw me off the track for a little while.  The comment is wrong!   > You're not bindi

Re: Can't get UDP example to work

2009-07-26 Thread Roy Smith
In article <148abf0f-c9e4-4156-8f16-e4e5615d3...@s6g2000vbp.googlegroups.com>, Paul Barry wrote: > host = '127.0.0.1' # Bind to all interfaces This threw me off the track for a little while. The comment is wrong! You're not binding to all interfaces, you're binding specifically to

Re: Can't get UDP example to work

2009-07-26 Thread MRAB
Paul Barry wrote: I'm trying to get one of the examples from Foundation of Python Network Programming to work. Specifically this is the UDP example from Ch 3. First there is the server: #!/usr/bin/env python # UDP Echo Server - Chapter 3 - udpechoserver.py import socket, traceback, time host

Can't get UDP example to work

2009-07-26 Thread Paul Barry
I'm trying to get one of the examples from Foundation of Python Network Programming to work. Specifically this is the UDP example from Ch 3. First there is the server: #!/usr/bin/env python # UDP Echo Server - Chapter 3 - udpechoserver.py import socket, traceback, time host = '127.0.0.1'