socket programming
Mark Tolonen
metolone+gmane at gmail.com
Wed Dec 30 12:41:41 EST 2009
"Zubin Mithra" <zubin.mithra at gmail.com> wrote in message
news:8e7c74320912300315r625f4c89kb8002e4b8c384d94 at mail.gmail.com...
> The code snippet i have pasted at,
>
> http://paste.pocoo.org/show/160555/
>
> produces a traceback which also has been pasted at the above link. The
> snippet attempts at socket programming using OOPs concepts. Please help.
>
> Thankx in advance
> Zubin Mithra
If you're trying to be a server, you need to listen() before accept(), and I
wouldn't call the method "connect()".
If you're trying to be a client, you can skip the bind() and call connect()
instead of accept().
-Mark
More information about the Python-list
mailing list