summaryrefslogtreecommitdiff
path: root/tomorrowtheground.py
blob: 7b68b120a1f4eca71197dee888fe1608c9c0c797 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python
#UDP listener

import socket
UDP_IP="127.0.0.1"
UDP_PORT=5204
sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) 
sock.bind( (UDP_IP,UDP_PORT) )
while True:
	data, addr = sock.recvfrom( 1024 )
	print "received message:", data