[zeromq-dev] Problems with pub/sub and ZMQ_CONFLATE flag
Barbara.Konz at ipk.fraunhofer.de
Wed Aug 20 19:53:19 CEST 2014
Sorry, I think I wrote something wrong. I set option_len this way:
int len = 1;
zmq_setsockopt(subscriber, ZMQ_CONFLATE, &len, sizeof(int));
Von: zeromq-dev-bounces at lists.zeromq.org [zeromq-dev-bounces at lists.zeromq.org]" im Auftrag von "Matthias Kluwe [mkluwe at gmail.com]
Gesendet: Mittwoch, 20. August 2014 19:37
An: ZeroMQ development list
Betreff: Re: [zeromq-dev] Problems with pub/sub and ZMQ_CONFLATE flag
2014-08-20 11:55 GMT+02:00 Konz, Barbara <Barbara.Konz at ipk.fraunhofer.de>:
> a few days ago I started with zmq and so far most tests I did turned out
> really fine.
> I need a pub/sub environment where my subscribers only receive the most
> recent message. Therefore, I set ZMQ_CONLFATE with option_len = 1
Hmm, you really did set option_len = 1?
The call to zmq_setsockopt expects option_len to be "the size of the
option value in bytes". The option value type of ZMQ_CONFLATE is int,
so 1 is (most probably) not correct...
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
More information about the zeromq-dev