toaruos/apps/test-udp-recv.krk
2021-09-09 20:17:04 +09:00

13 lines
194 B
Plaintext

#!/bin/kuroko
import socket
let s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("Binding to :1234")
s.bind(('0.0.0.0',1234))
print("Waiting.")
while True:
print(s.recv(1024))