Hi everybody,

I am using Python 3.0.

I have such a code :
b=time.clock()
while time.clock()-b<3 :
    data=s.recv(1024)

However I would like to set timeout on the socket rcv method, so that the
while loop stops exactly after 3 seconds. Is this possible ?

Thanks a lot,
Dwayne
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to