summaryrefslogtreecommitdiff
path: root/vpn/10.10.10.1~
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/10.10.10.1~')
-rwxr-xr-xvpn/10.10.10.1~14
1 files changed, 14 insertions, 0 deletions
diff --git a/vpn/10.10.10.1~ b/vpn/10.10.10.1~
new file mode 100755
index 0000000..7ec52f7
--- /dev/null
+++ b/vpn/10.10.10.1~
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import socket
+
+UDP_IP = ""
+UDP_PORT = 5000
+
+sock = socket.socket(socket.AF_INET, # Internet
+ socket.SOCK_DGRAM) # UDP
+sock.bind((UDP_IP, UDP_PORT))
+
+while True:
+ data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
+ print "received message:", data \ No newline at end of file