summaryrefslogtreecommitdiff
path: root/Demo/sockets/radio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sockets/radio.py')
-rw-r--r--Demo/sockets/radio.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Demo/sockets/radio.py b/Demo/sockets/radio.py
deleted file mode 100644
index fa4ce75eb1..0000000000
--- a/Demo/sockets/radio.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Receive UDP packets transmitted by a broadcasting service
-
-MYPORT = 50000
-
-import sys
-from socket import *
-
-s = socket(AF_INET, SOCK_DGRAM)
-s.bind(('', MYPORT))
-
-while 1:
- data, wherefrom = s.recvfrom(1500, 0)
- sys.stderr.write(repr(wherefrom) + '\n')
- sys.stdout.write(data)