diff options
| author | Comment <tim@gray.(none)> | 2012-11-28 18:40:32 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2012-11-28 18:40:32 +0000 |
| commit | a0ab2cd35d91ba0080f9fb870d82aa90a51a0d6c (patch) | |
| tree | 0e0fd44d0f07ccf1ea4a5f1e30a03e0203300321 /vpn/10.10.10.1 | |
| parent | 75c277c10f206f5bf3799caa03a52f40c1c8b6cf (diff) | |
nearly finished except latency
Diffstat (limited to 'vpn/10.10.10.1')
| -rwxr-xr-x | vpn/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 |
