Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 199 Bytes
import sys
import select
import socket
UDP_IP = ""
UDP_PORT = 20666
MESSAGE = sys.argv[1]
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.sendto( MESSAGE, (UDP_IP, UDP_PORT) )
print "sent"