toaruos/apps/test-udp-recv.krk

13 lines
194 B
Plaintext
Raw Normal View History

2021-09-09 14:17:04 +03:00
#!/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))