Socket communication problem

Sandy Dunlop sandy.dunlop at gmail.com
Wed Oct 24 16:48:19 EDT 2007


Jean-Paul Calderone wrote:

> Neither the server nor client Python programs you linked to uses the socket
> API correctly.  The most obvious mistake is that the code does not check the
> return value of socket.send(), which you must do.
> 
> Twisted is a third-party library which abstracts many of the low-level
> details of the BSD socket API away from you.  You might want to take a
> look at it.


Thankyou. I've managed to get it working now that I'm using the socket 
API correctly. In case anyone else has the same issue in the future, 
I'll leave my solution here:

     http://sorn.net/~sandyd/python/solution

I'll have a look at Twisted - sounds good.

Thanks,
Sandy





More information about the Python-list mailing list