Quantcast
Browsing all 193 articles
Browse latest View live

ZeroMQ: have to sleep before send

I'm write a zeromq demo with Forwarder device (with pyzmq)Here are the codes(reference to https://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/devices/forwarder.html ):forwarder.pyimport...

View Article


Parallel Req/Rep via Pub/Sub

I have multiple servers, at any point, one and only one will be the leader whcih can respond to a request, all others just drop the request. The issue is that the client does not know which server is...

View Article


Image may be NSFW.
Clik here to view.

ZMQ_ROUTER Semantics: Dropping Disconnected Peers

I wanted to develop a reliable multi-client, single-server req/rep communication pattern. I decided to use ZMQ_REQ and ZMQ_ROUTER sockets in order to accomplish this task.The ZeroMQ RFC states the...

View Article

how to get notified when zmq protocol error occurs

normally, a zmq socket keeps re-connecting until it is connected. but if it connects to a wrong address, it could stop re-connecting.one example is that say a zmq subscriber tries to conect to...

View Article

Image may be NSFW.
Clik here to view.

zeromq failing after running for a bit

I currently run a process as well as an API. These two need to communicate, more specifically the API to the process. For this I am using zeromq's python library. My code is as follows:server.py:from...

View Article


ZeroMQ 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 Article

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 Article

Image may be NSFW.
Clik here to view.

Runtime exception referencing type from NuGet package NetMQ: 'Could not load...

Background :Consuming assembly is a .NET 6 DLL that is later used by a .NET 6 console application. This consuming assembly is loaded dynamically at runtime by the console application.All assemblies are...

View Article


ZMQ Error 19 when binding ZMQ_PUB type socket

I have a simple code chunk that establishes a ZMQ_PUB type socket to broadcast data packets. However, I am finding that this code works on some Windows machines and not others.Working machine details:...

View Article


How to prevent fake identites in zmq dealer-router pattern

I'm using the ZMQ pattern dealer/router.In my project, a router is a server manager and a dealer is a client.So I have many dealers and only one router.Each dealer can send its own request along with...

View Article

Image may be NSFW.
Clik here to view.

Platform.hpp not found issue after macOS Sonoma and Xcode 15.2 installed

Issue description:I have installed libzmq using cocoapod for my ios project.pod 'libzmq'After pod installation tried cmake installation as per the suggestion on this existing created...

View Article

client/server ipcameras over network usage at least cpu

I have 32 of ip cameras with 5 mp and high resolution and I send frames with this code over network but this code get many cpu usage and when frames receive to client loss some of frames , please give...

View Article

Unable to run ZMQStream with Tornado Event loop using python 3.7

I've been trying to set up a server / client using zmq eventloop for REQ / REP messaging. Since python 3 doesn't support the eventloop provided by zmq, I'm trying to run it with tornado's eventloop.I'm...

View Article


ZeroMQ High Water Mark Doesn't Work

when I read the "Durable Subscribers and High-Water Marks" in zmq guide, it said "The HWM causes ØMQ to drop messages it can't put onto the queue", but no messages lost when I ran the example. Hit...

View Article

Execute multiple zmq send in same event loop with php ratchet

I have a list of 500 results that I want to send from my zmq worker class to my server class. Now I am trying to send the first 50 results and then do some processing for the next 450 results and then...

View Article


Python ZeroMQ PUSH/PULL logic, set high water mark to a low end puller...

I am using simple one to one PUSH/PULL worker/server python codes to send and receive messages.The worker uses the PUSH socket to send messages to the PULL server. The server processing unit is not as...

View Article

Do zmq subscribers know to skip subsequent parts of filtered topics for...

Say I have a publisher_socket and a subscriber_socket, created in two different processes. The publisher_socket publishes a two-part message, outlined in pseudo-code...

View Article


Issue checking if a ZeroMQ server is ready to talk to clients

I am trying to see if a ZMQ_REP server is ready to communicate with clients using the following code by polling the server every 1 second but it never returns true although the server is up and running...

View Article

using ZeroMQ with Electron 22 and Electron-Forge

I am trying to use ZeroMQ (0MQ) inside an Electron application: npm add zeromq@6.0.0-beta.19 and electron@22.3.24 and @electron-forge/cli@6.0.5On my local machine, for development, everything works as...

View Article

How to pause PUSH messages until the socket has a client with ZeroMQ?

I am using ZeroMQ and NetMQ to allow for a two-way communication between some python scripts and a Unity C# script. I implemented it with two PUSH-PULL sockets, one for each way. This works fine. The...

View Article
Browsing all 193 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>