Hi how to kill the recv or recvfrom in socket connection, then there is no data and the functions recv, recvfrom is in waiting mode.?for example:
sock=socket.socket(...)
sock.bind((host,port))
while True:
packet,address=socket.recvfrom()
print packet
if there is no data on socket it is waiting, so how to kill it if it doesn't get any data for about 5 or less seconds?thanks in advance