ipblc/misc/testzmq.py
Paul 0130e47b34
Some checks failed
continuous-integration/drone/push Build is failing
move old files
2024-12-21 07:08:17 +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)