[Tutor] Re: socket question

lumbricus@gmx.net lumbricus@gmx.net
Wed Dec 25 06:57:01 2002


Hi!

[ snip ]

> It seems that if I use socket.recv() and it's one of these empty
> packets, my program hangs waiting for the data, which doesn't exist. 
> I'm pretty sure I'm doing something wrong, but can't figure out what.

Try "socket.setblocking(0)"

HTH, J"ö!


-- 
sigfault

+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!