I would suggest something like this:

frame0 - topic
frame1 - UUID
frame2 - message body

Every subscriber would need to check frame1 for a UUID that they originated. If 
they find a match, ignore the rest of the message.

In other words, this has to be done in your application logic. There is no 
mechanism for telling zeromq subscribers to ignore messages that they 
"originate" particularly since SUB sockets can *only receive.*

cr

On Nov 20, 2013, at 1:35 AM, George Kumar <[email protected]> wrote:

> I am using a push/sub pattern in a ZMQ client. When the server publishes the 
> messages, I want all subscribers to see the message except the one that sent 
> it originally. In other words on subscribe, I want to see all messages, 
> except the ones sent by me. What is the best way to achieve it.
> 
> Thanks.
> George
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to