Python, Network Programming, Sockets, Programming, Technology.
Wait for a message print('Waiting for a message') data, address = server_socket.recvfrom(4096) print('Received {} bytes from {}'.format(len(data), address)) print(data) if data: sent = server_socket.sendto(data, address) print('Sent {} bytes back to {}'.format(sent, address)) # Start the UDP server