ZMQ socket gracefully termination in Python
I have the following ZMQ script#!/usr/bin/env python2.6import signalimport sysimport zmqcontext = zmq.Context()socket = context.socket(zmq.SUB)def signal_term_handler(signal, fname): socket.close()...
View ArticleMissing Messages with PGM in PUB/SUB Architecture Using ZMQ 4.3.6
I'm working on a PUB/SUB architecture with the following setup:Platform: x86 Ubuntu 24.04ZeroMQ Version: 4.3.6 (libzmq)PGM Version: 5.3.18Build Configuration: No additional flags except...
View ArticleHow to handle ZeroMQ publisher crash?
I have a zmq proxy(XPUB/XSUB) running on a thread and some other publisher/subscribers connected to this proxy on python, and have a publisher code on C++. All connections are made using tcp on...
View ArticleCorrect way to store Python function definitions (names) in a database?
Context - Skip to "Crux" for tl;dr:I'm building a report automation system that includes a handful of independent "worker" daemons each with their own APScheduler instance, one central "control panel"...
View ArticlePyZMQ asyncio SUB socket not receiving last message even with CONFLATE set to 1
I have an async PUB socket as follows:import asyncioimport zmqimport zmq.asyncioasync def serve(address: str): context = zmq.asyncio.Context() socket = context.socket(zmq.PUB)...
View ArticleCan't send a NumPy array larger than 2 GB with ZeroMQ
I'm using the Python code shown below to serialize and send a NumPy array from the client to the server using ZeroMQ. I noticed that when the NumPy array is larger than 2 GB the client seems to stall...
View ArticleZeroMQ 'Restart' if no reply was recieved
I have a python program which sends height data from my client to my server program. My server program will not be always running so if I don't recieve a response I would like it to try again.So far...
View ArticleHow can someone send data from MetaTrader 4/5 Terminal to external server?
this is somehow intended to (maybe) be(come) a guideline post in terms of MetaTrader 4/5 and its corresponding language MQL4 both set into context with sending data to external servers. In my special...
View ArticleUsing ZMQ, which pattern and framework to use in such a scenario ? Two...
My application is separated in two computers (A which contains some GUI and B which contains some complex processing).Here are some constraints:PROBLEMSBoth computers need to communicate between each...
View ArticleSetup zeromq client-server between Windows and WSL
I'm using ZeroMQ to set up a client-server communication system where the server runs on WSL and the client runs on Windows. For testing purposes, I'm using the default client-server example code in C...
View ArticleHow to launch ECS task instances dynamically using C#?
I have a micro-services application that I am deploying to AWS using ECS Fargate. Most of the containers can be deployed as long running tasks in a service. However, I need to spin up new containers as...
View ArticleCreate NetMQ Socket on one thread and operate on another?
I understand that NetMQ sockets are not thread safe. I'm trying to understand the exact boundaries of this. Must all access to a socket (creation, connect/bind and send/receive) be on the same thread?...
View ArticleHow to implement NetMQ(ZeroMQ) solution properly?
I'm using ZeroMQ (NetMQ, latest version) in a Client (WinForms) / Service (WCF) setup. The current implementation has multiple thread loops for message handling and a heartbeat mechanism, but it's...
View ArticleZeroMQ and multiple subscribe filters in Python
I'd like to subscribe to multiple filters with ZeroMQ in Python, using one socket.sock.setsockopt(zmq.SUBSCRIBE, 'first.filter')sock.setsockopt(zmq.SUBSCRIBE, 'second.filter')But this doesn't work....
View ArticleZMQError: Cannot assign requested address
I'm using zeromq to develop a dynamic application which operate like upnp protocol( autoconfiguration and auto-discovery of equipment on a living room). To do it so, i use zeromq to distribute...
View ArticlesrsUE on FPGA not connecting to srsRAN
I'm running srsUE on FPGA, buildroot with 2 CPUs and 1G memory. srsRAN is running on my laptop, ubuntu 22. I use dockerized version of 5gc.srsUE and srsRAN connected through ZMQ and on a local...
View ArticleHow to gracefully terminate a socket server?
If I have a server function that is listening to a port in an infinite loop, how do I stop it? If i do ctrl+c it terminates the process and the program does not get a chance to destroy the socket...
View ArticleLink error finding pthread when cross compiling for Raspberry PI using Macos
Im trying to build an application on the mac (host) for the raspberry pi (target) that will use zeromq. I can write a simeple program that uses pthread and it runs perfectly. When I enable -lzmq,...
View ArticleWhy is the requester and responder socket string different in zmq_bind vs...
I have just started studying the ZeroMQ messaging library from Chapter 1 of the guide (available here). While I understand the well-written examples, I don't get one small point of the syntax:...
View ArticleHow to receive a multipart message in ZMQ using Java?
As simple as this operation seems I can't find any documentation regarding how to receive a multipart message using ZMQ (Jeromq). I checked The Guide but it only contains C code with this info and it...
View ArticleZeromq Broadcast All to All
What would be the best way of doing an all-to-all communication, would it be best to do a pub-sub with everyone subscribing to everyone else, or is there a socket type better suited for this?
View ArticleHow do I make a dynamic list or array of ZeroMQ (pyzmq) sockets/contexts in...
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 the boring technical details as they are irrelevant...
View ArticleCan I use zmq_send() and zmq_recv() in different threads?
I know ZMQ guide says that the following is not thread-safe.But I want use one thread receive data:zmq_poll() wait data come, then use zmq_recv() receive data; use another thread send data: zmq_send()I...
View ArticleZMQ Dynamic Discovery with XPub-XSub
I'm attempting to implement dynamic discovery of networked "nodes" using ZMQ's XPub-XSub pattern. Every example I can find online is limited to a single machine - using localhost for the IP address....
View ArticleIs it possible to use cmake FetchContent with install dependencies
I want to build an application using cppzmq and i'm looking for advice to properly managing dependencies in cmake.cmake_minimum_required(VERSION 3.16)project(myTest)set(CMAKE_CXX_STANDARD...
View ArticleNetMQ RouterSocket TrySendMultipartMessage SendMultipartMessage Hangs...
I'm using NetMQ with a router dealer socket. I use NetLimiter to limit upload and download speeds to 1kbit/s SendMultipartMessage eventually hangs infinitely. I've also tried TrySendMultipartMessage...
View ArticleCorrect pattern to process ZeroMQ messages using Goroutines
I am implementing a Zero MQ message listener service in Go, and I am struggling to find the most idiomatic pattern of processing those messages and storing them in a DB using Goroutines. I am expecting...
View ArticleCan I safely have a sender use zmq_send and receiver use zmq_msg_recv?
I have one module where the developer used zmq_send and another module where the developer used zmq_msg_recv. These are supposed to talk to each other. As far as I can tell, zmq_send is just a wrapper...
View ArticleOpenModelica in Google Colab
Has anyone ever tried to run OpenModelica scripting features in Google's Colab? Is that even possible?This is what I tried so far.In the first line, I try to install everything:!sudo apt-get...
View Articleterminate called after throwing an instance of 'zmq::error_t' what(): Invalid...
I have a simple ZeroMQ request reply pattern, that I am trying to implement as two threads. However When I run the below code, I get the following...
View Article