while True: print 'waiting for message...' data, addr = udpSerSock.recvfrom(BUFSIZ) udpSerSock.sendto('[%s] %s' % ( ctime(), data), addr) print '...received from and returned to:', addr
udpSerSock.close()
Related Scripts with Example Source Code in same category :