fastapi/test.py

7 lines
111 B
Python
Raw Normal View History

2023-03-10 10:46:21 +00:00
from pynng import Pair0
s1 = Pair0()
while True:
s1.listen('tcp://172.16.0.1:28442')
print(s1.recv())