make it work
This commit is contained in:
parent
ccd9753276
commit
24a4126a8d
2 changed files with 7 additions and 6 deletions
2
demo.py
2
demo.py
|
|
@ -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.poll():
|
||||
print(d, a)
|
||||
time.sleep(0.1)
|
||||
elif sys.argv[1] == "c":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue