How can I clear the internal buffer of ZMQ multicast without closing the socket?
I'm using ZeroMQ (ZMQ) to transfer bulk data from a server to multiple groups. The bulk data is divided into small chunks and transmitted accordingly. After sending a predefined window of data, I...
View ArticleHow to close a ZMQ socket correctly?
class ClientThread(MyThread): def __init__(self, context, frame): MyThread.__init__(self, context, frame) self._stop_event = None def run(self): self._socket = self._context.socket(zmq.SUB) address =...
View ArticleAre the ways to speed up ZMQ's recv_multipart()?
I have multiple clients that send dicts of Numpy arrays to a ZMQ server. I managed to pack the dicts of Numpy arrays into a multi part message to avoid memcpy's during deserialization, which doubled...
View Articlec++ zeromq with pgm crash in joining multicast in windows
I compile zeromq c++ source code with pgm source code in visual code 2019, and get zeromq lib.Then I config my multicast environment, but the program failed in joining multicast.my code is : void*...
View ArticleWhy a ZeroMQ example does not work?
I am new in Python/ ZeroMQ, so show forbearance if it is an easy question.I try to run some examples, but it does not work really good.Here is the hwserver/hwclient example of the ZeroMQ-Guide:SERVER#...
View ArticleZMQ python programming
I have got an object detection which reads an input image and runs the inference then it outputs the classIDs[] (class name) and confidence levels of the detected object confidences[].
View ArticleHow do I make a dynamic list or array of ZeroMQ (pyzmq) sockets/contexts in...
First off, please forgive me as I am a Python noob. I have a project where the best way to communicate with a series of remote devices is to connect to them with ZeroMQ in PAIR arrangement. (I'll spare...
View ArticleRX vs messaging queues like rabbitmq or zeromq? [closed]
I'm quite new to these high level concurrency paradigms, and I've started using the scala RX bindings. So I'm trying to understand how RX differs from messaging queues like RabbitMQ or ZeroMQ?They both...
View ArticleHow do I receive TCP messages on an android Emulator from a physcal device
In my setup I have 2 apps. One running on my local emulator on my macbook. The other on my physical android phone.In these apps I use ZeroMQ to have a Req/Rep socket, which under the hood uses TCP.When...
View ArticleZeroMQ: Is there no other way than polling or sleep to check if a socket is...
We are using ZeroMQ for a project, with the following architecture:This is basically our module we wrote in C for using ZeroMQ:#define RET_ERROR(x) syslog(LOG_ERR, x "%s", zmq_strerror(errno));...
View ArticleCan you lose messages when using xpub xsub with zmq? [closed]
Seems like when using xsub xpub zmq does not make any guarantees for reliability and messages can be lost for many reasons.Is that also the case when making the actual subscription? Can that message...
View ArticleRadio/Dish sockets (ZeroMQ) with java
I try to build a streaming communication between two nodes. So, after reading some articles and advises, I decided to work with ZeroMQ sockets (I had a small experience with those sockets). I found...
View ArticleWhat's the right ZMQ architecture for my scenario?
I have a service A that every once in a while needs to send a message to a cluster of services B1, B2 ... BN. Then all of these services need to receive that message reliably, and send a confirmation...
View ArticleZeroMQ IPC across several instances of a program
I am having some problems with inter process communication in ZMQ between several instances of a programI am using Linux OSI am using zeromq/cppzmq, header-only C++ binding for libzmqIf I run two...
View ArticleI can't understand how unsigned char _ [32] is used in this example
I am working on some examples of using zeromq and started reading the zeromq.h file to get into more detail.I am buffled at the line where the zmq_msg_t is...
View ArticleCan't receive messages in ZeroMQ push/pull on Kubernetes
I have read the other questions and I have found no answer...I have three services deployed in kubernetes: one service that sends messages, one broker and one consumer. The broker and the consumer...
View ArticleHow to use timerfd properly?
I use timerfd with zmq.How can I use timerfd_create and timerfd_set to wait one second for the timer (https://man7.org/linux/man-pages/man2/timerfd_create.2.html)?I have looked through the link but I...
View Articlehow to conditionally diable multicast tests, builiding and testing libzmq...
When building a recent release of libzmq for a branch in the openSUSE build system, with ZMQ draft features enabled (e.g radio/dish, client/server sockets) I've fetched the latest sources for the build...
View ArticleZeroMQ socket Recv() throws 'Context was terminated' exception - why and how...
Using a ZMQ.SocketType.REP (reply) messaging socket with ZeroMQ, I am receiving messages and then sending an "OK" message back.For now, I'm trying this locally (sending/receiving messages from the same...
View ArticleJupyter server zmq connection using php client
I am trying to connect to communicate to jupyter server using zmq messages sent by my PHP script. But the connection between zmq server and my PHP script is not being established.I tried assigning...
View Article