Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: socket programming

0 views
Skip to first unread message

Mark Tolonen

unread,
Dec 30, 2009, 12:41:41 PM12/30/09
to pytho...@python.org

"Zubin Mithra" <zubin....@gmail.com> wrote in message
news:8e7c74320912300315r625...@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


0 new messages