jsb-netgame/demo2.py

11 lines
168 B
Python
Raw Normal View History

2024-02-17 17:05:21 +00:00
import network, sys, time
sock = network.Sock()
address = ("0.0.0.0", 33077)
sock.listen(address)
while True:
for d, a in sock.get():
print(a, d)
time.sleep(0.1)