Can't get a simple TCP program to work

Irmen de Jong irmen.NOSPAM at xs4all.nl
Sun Mar 29 17:11:59 EDT 2009


Zach wrote:
> The following *extremely* simple script complains that "Socket is not
> connected" when I try to call recv. Could anyone provide some quick
> guidance?
> 
> http://pastebin.com/m64317b32

replace node2.recv() by new_socket.recv() - you need to get data from the
client socket that you got from accept(), not from the server socket...

--irmen



More information about the Python-list mailing list