2022-03-13 21:56:17 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import socket
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
2022-05-08 16:15:02 +02:00
|
|
|
# UDP_SIZE = int(sys.argv[1])
|
2022-03-13 21:56:17 +01:00
|
|
|
|
|
|
|
UDP_IP = "127.0.0.1"
|
|
|
|
UDP_PORT = 13337
|
2022-05-08 16:15:02 +02:00
|
|
|
MESSAGE = b"\xff\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00"
|
2022-03-13 21:56:17 +01:00
|
|
|
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
2022-05-08 16:15:02 +02:00
|
|
|
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
|