Skip to content
Find file
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"
Something went wrong with that request. Please try again.