mice_on_drugs
6a60951487
Co-authored-by: Tobias Ottenweller <tobi@ottenweller.net> Reviewed-on: #21 Co-authored-by: mice_on_drugs <tobi@ottenweller.net> Co-committed-by: mice_on_drugs <tobi@ottenweller.net>
13 lines
278 B
Python
Executable File
13 lines
278 B
Python
Executable File
#!/usr/bin/env python3
|
|
import socket
|
|
import sys
|
|
|
|
|
|
# UDP_SIZE = int(sys.argv[1])
|
|
|
|
UDP_IP = "127.0.0.1"
|
|
UDP_PORT = 13337
|
|
MESSAGE = b"\xff\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00"
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT)) |