def receiver(threadname, x): global sock while True: data, add = sock.recvfrom(1024) if not bss.check(data, add, flag): break sock.close()
def receiver(threadname,x): global sock while True: data , add = sock.recvfrom(1024) if not bss.check(data, add, flag): break sock.close()