Hello everyone. I am trying to monitor(count) the incoming subscriptions in a PUB-SUB system. I have written this piece of code in C/C++. None of the implementations are working. They both get stuck into:
zmq_recvmsg (C)
zmq::poll(&items[0], 1, std::chrono::milliseconds(timeout)) inside zmq.hpp check_event function (CPP)
Then I have my client written in Python, nothing happens when the subscriber connects to the socket.
I want to mention that the Python scripts that connects it is able to receive data.
import zmq
context = zmq.Context()
print("Connecting to hello world server…")
socket = context.socket(zmq.SUB)
socket.connect("ipc://test")
socket.setsockopt(zmq.SUBSCRIBE, b'')
for request in range(100000):
message = socket.recv()
print("Received reply %s [ %s ]" % (request, message))```
Hello everyone. I am trying to monitor(count) the incoming subscriptions in a PUB-SUB system. I have written this piece of code in C/C++. None of the implementations are working. They both get stuck into:
Then I have my client written in Python, nothing happens when the subscriber connects to the socket. I want to mention that the Python scripts that connects it is able to receive data.