Questions tagged [czmq]
12 questions
2
votes
0 answers
goczmq not working even after installing through vcpkg
I tried using goczmq on windows 10, but it doesn't work even if I installed czmq using vcpkg.
Steps I tried was:
vcpkg install czmq which automatically installed zeromq as well.
It seems to work on visual studio 2022, but not for goczmq which…

Chanond Wongpiya
- 41
- 7
2
votes
1 answer
CZMQ set send HWM / set receive HWM
Doesn't this have to work?
#include
zsock_t *sockout = zsock_new_pub("inproc://a");
zsock_set_sndhwm (sockout, 20);
How to set HWM and/or BUF sizes?
UPDATE:
I added some more code and works in this context:
#include
#include…

Paul
- 181
- 4
- 11
2
votes
0 answers
How can we hard code port number in client in zmq push pull socket
In case of connecting to zmq server, zmq client will pick random port number from local range.
Usually in case of any tcp connection, we should be able to bind and connect the client to server. And hence, client can use a fixed port number (src port…

Nithin Sen
- 51
- 5
1
vote
0 answers
ZMQ Random Delay/Latency
I am trying to achieve consistent <500 us latency on my ZMQ REQ/REP application. However, I've encountered 2 types of delay.
First packet delay : It varies between 5-6ms levels.
Random delays : It happens randomly(every 5-10s) and varies between…

anlgrses
- 371
- 4
- 12
1
vote
1 answer
gcc version 4.6.1 is compatible with protobuf?
I am using protobuf with zmq for one of my project. Can I use protobuf with this gcc version 4.6.1?
If yes, please let me know which version of protobuf I have to use.
Regards,
Smiley

Smiley
- 11
- 2
1
vote
2 answers
How to exit endless zmq_poll when host ip address changes?
I wrote a zmq proxy with zmq_poll() with 3 frontends and 3 backends and timeout of -1 which makes it endless. Frontend sockets use the connection-oriented tcp://-transport-class and are zmq_bind() associated with the tcp-ports on the host IP-address…

H00man
- 375
- 1
- 7
- 21
0
votes
0 answers
zmq_poll returns -1 ( Context has been shut down) when polling 2 sockets
i am using zactor and in the call back i receive a pipe socket.
i create a router socket and polling this sockets for messages.
it is not working and giving -1 result as return value of zmq_poll;
what could be the problem?
`void
echo_actor (zsock_t…

Chandrasekhar Nunna
- 11
- 1
0
votes
1 answer
Purpose of zeromq send high watermark
The first time I skimmed the zeromq docs, I assumed that the sender high watermark was there to ensure that the sender did not get too far ahead of the receiver. Now that I'm looking at it more carefully, it seems that this can't possibly be true,…

Mark VY
- 1,489
- 16
- 31
0
votes
1 answer
How to Correctly Install ZMQ?
When I try to run this simple program (https://zeromq.org/get-started/?language=cpp&library=zmqpp#)
#include
#include
#include
#include
#include
using namespace std;
int main(int argc, char…

MrFreeze2017
- 79
- 1
- 7
0
votes
1 answer
Add static library czmq to C project (CMake)
I am writing a project in C using the ZeroMQ library. I need to use a static library. CMakeLists.txt:
cmake_minimum_required(VERSION 3.17)
project(client C CXX)
set(CMAKE_C_STANDARD 99)
find_library(czmq_location NAMES libczmq.a)
message(STATUS…

neleps
- 1
0
votes
1 answer
Why a SIGABRT permission denied error appeared during a zmq_poll()?
I am using zmq PUSH and PULL sockets. And recently started observing SIGABRT crash, in zmq_poll() operation.
The error/exit log is "Permission denied (src/tcp_connecter.cpp:361)"
(gdb) bt
#0 0x00007ffff76d053f in raise () from /lib64/libc.so.6
#1…

Nithin Sen
- 51
- 5
0
votes
0 answers
ZeroMQ with czmq showing wild swings in performance tests
ZeroMQ with czmq is displaying some worrying performance. Timed results differ by a factor of almost 20. Specifically, in the following example, test times range from about 7ms up to 150ms!?
Based on the provided czmq "grassland" [1] test examples,…

kmiklas
- 13,085
- 22
- 67
- 103