from pynng import Pair0 s1 = Pair0() while True: s1.listen('tcp://172.16.0.1:28442') print(s1.recv())