Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > socket examples

Reply
Thread Tools

socket examples

 
 
le dahut
Guest
Posts: n/a
 
      01-24-2006
Hi,

I've read the Gordon McMillan's "Socket Programming HOWTO" and I'm
looking for other documents that show examples on how to write a socket
server that can answer multiple clients at the same time.
Does someone know where I can find those documents/tutorials ?

Very thanks,
K.
 
Reply With Quote
 
 
 
 
Bryan Olson
Guest
Posts: n/a
 
      01-24-2006
le dahut wrote:

> I've read the Gordon McMillan's "Socket Programming HOWTO"


Just a few days ago, another participant in this group noted
that code in Gordon McMillan's "Socket Programming HOWTO"
does not work. He was right. The code is wrong.

Currently, one can Google up "Python socket howto", and
see the wrong code, in section "3 Using a Socket". I
expect we will soon fix this bug. I've send e-mail to
the author's address as presented in the howto. I've not
yet received a reply, but eventually I'll escalate.

The level of the error is astonishing: methods are missing
the 'self' parameter. The 'self' parameter is unneeded in
other languages, but basic in Python. The conclusion is
inescapable: the code in the howto was never tested at all,
nor reviewed by anyone competent in Python.


I myself have posted code that was outright wrong, so I
don't want to come down too hard on any particular author.
Nevertheless, we who advocate Python have to be concerned
that such a basic error appears in one of very few HowTo
documents.


--
--Bryan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 1 02-03-2009 06:20 AM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 0 02-01-2009 12:45 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM



Advertisments