ipblc/tests/testzmq.py
Paul Lecuq 678f7e5060
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing
added feature to block after max tries for a set
misc:
* updated tests
* updated dependencies
2022-08-28 17:32:23 +02:00

13 lines
231 B
Python
Executable File

#!/usr/bin/python3
import zmq
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("tcp://sys01:9999")
socket.setsockopt_string(zmq.SUBSCRIBE, "ipbl")
while True:
msg = socket.recv_string()
print(msg)