From d76477674d83d1c7d7776088eb26692c2102c42a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 6 May 2016 02:11:25 +0200 Subject: [PATCH] add recv to send_udp example --- send_udp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/send_udp.py b/send_udp.py index cc31349c8b..6a19f0f849 100755 --- a/send_udp.py +++ b/send_udp.py @@ -8,3 +8,6 @@ MESSAGE = b'Hello, World!' sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.sendto(MESSAGE, (UDP_IP, UDP_PORT)) + +while True: + print(sock.recv(64))