[zeromq-dev] Fwd: Inverted PUB-SUB doesn't work
Rajalakshmi Iyer
raj at blismedia.com
Fri Feb 6 08:59:49 CET 2015
It worked after replacing a blocking recv with a poll + recv.
Thanks!
On Fri, Feb 6, 2015 at 7:38 AM, Rajalakshmi Iyer <raj at blismedia.com> wrote:
> :) Quite funny.
>
> However, even after adding -
>
> receiver.setsockopt(ZMQ_SUBSCRIBE, "", 0);
>
> the result is the same. The subscriber is still not seeing the messages.
>
> Any ideas?
>
> On Thu, Feb 5, 2015 at 7:31 PM, Gregg Irwin <gregg at pointillistic.com>
> wrote:
>
>> Hi Rajalakshmi,
>>
>> RI> I have only just subscribed to the zeromq-dev mailing list.
>>
>> :) I mean in your code. You need to set the socket option with a
>> filter for what messages you want it to subscribe to. From
>> http://api.zeromq.org/4-1:zmq-socket:
>>
>> > Initially a ZMQ_SUB socket is not subscribed to any messages, use
>> > the ZMQ_SUBSCRIBE option of zmq_setsockopt(3) to specify which
>> > messages to subscribe to.
>>
>> -- Gregg
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>
>
--
@BlisMedia <http://twitter.com/BlisMedia>
www.blismedia.com <http://blismedia.com>
This email and any attachments to it may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent
those of BlisMedia Ltd, a company registered in England and Wales with
registered number 06455773. Its registered office is 3rd Floor, 101 New
Cavendish St, London, W1W 6XH, United Kingdom.
If you are not the intended recipient of this email, you must neither take
any action based upon its contents, nor copy or show it to anyone. Please
contact the sender if you believe you have received this email in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150206/7a9301dc/attachment.htm>
More information about the zeromq-dev
mailing list