summaryrefslogtreecommitdiff
path: root/Demo/sockets/radio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sockets/radio.py')
-rwxr-xr-xDemo/sockets/radio.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/sockets/radio.py b/Demo/sockets/radio.py
index 4bb55ff995..5905ff2a3c 100755
--- a/Demo/sockets/radio.py
+++ b/Demo/sockets/radio.py
@@ -9,5 +9,6 @@ s = socket(AF_INET, SOCK_DGRAM)
s.bind('', MYPORT)
while 1:
- data = s.recv(1500)
+ data, wherefrom = s.recvfrom(1500, 0)
+ sys.stderr.write(`wherefrom` + '\n')
sys.stdout.write(data)