ipblc/misc/testzmq.py
Paul a27ccc28a1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
version 1.8.0 (#15)
Reviewed-on: #15
2024-12-23 19:17:12 +01: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)