This commit is contained in:
ZettaScript 2024-02-03 18:57:23 +01:00
commit 2863035228
3 changed files with 70 additions and 2 deletions

View file

@ -7,7 +7,7 @@ port = int(sys.argv[2])
if sys.argv[1] == "s":
sock.listen(("0.0.0.0", port))
while True:
for d, a in sock.poll():
for d, a in sock.get():
print(d, a)
time.sleep(0.1)
elif sys.argv[1] == "c":