Sorry, I think I wrote something wrong. I set option_len this way:

  int len = 1;
  zmq_setsockopt(subscriber, ZMQ_CONFLATE, &len, sizeof(int));

Regards,
Barbara
________________________________________
Von: zeromq-dev-boun...@lists.zeromq.org 
[zeromq-dev-boun...@lists.zeromq.org]" im Auftrag von "Matthias Kluwe 
[mkl...@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

Hi!

2014-08-20 11:55 GMT+02:00 Konz, Barbara <barbara.k...@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...

Regards,
Matthias
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to