summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/unicast.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sockets/unicast.py')
-rw-r--r--Demo/sockets/unicast.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Demo/sockets/unicast.py b/Demo/sockets/unicast.py
deleted file mode 100644
index dd15e3c..0000000
--- a/Demo/sockets/unicast.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Send UDP broadcast packets
-
-MYPORT = 50000
-
-import sys, time
-from socket import *
-
-s = socket(AF_INET, SOCK_DGRAM)
-s.bind(('', 0))
-
-while 1:
- data = repr(time.time()) + '\n'
- s.sendto(data, ('', MYPORT))
- time.sleep(2)