ipblc/tests/test.py
Paul Lecuq 85d85a4ae4
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is passing
initial version of ipblc after blparser renaming
2022-05-27 13:59:17 +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)