SocketServer class - basis problem
Miki Tebeka
tebeka at cs.bgu.ac.il
Tue Jun 24 01:25:46 EDT 2003
Hello, Leonard,
> data = s.recv(1024)
> s.close()
> print 'Received', data
>
> Why does s.recv() hang the client? It seems like server is not
> handing back "blah", but I'm sure it is.....
I think that the socket buffer is not full (since you are waiting for
1024 and "blah" is not enough).
> this should be easy...(sigh)
If it was that easy it won't be interesting ;-)
Have a look at http://www.amk.ca/python/howto/sockets/
HTH.
Miki
More information about the Python-list
mailing list