[zeromq-dev] XSUB/XPUB upstream messages

John Muehlhausen jgm at jgm.org
Sun Dec 30 19:13:04 CET 2012

Currently XSUB will not send messages unless they contain a subscribe or
unsubscribe prefix (see code fragment below).

It would be useful to pass these "malformed" messages anyway, although they
would not affect subscription status.

I have not yet looked into the scope of the changes required.  At this
stage I am wondering if anyone is against the proposal.  If nobody is
against it, I will supply an implementation.

I realize that this is not "purist" pub/sub.  It is more like
"point-to-multipoint and multipoint-to-point, with a filter on the former"
which is, at least for me, a useful design pattern.


    // Malformed subscriptions.
    if (size < 1 || (*data != 0 && *data != 1)) {
        errno = EINVAL;
        return -1;

On Sun, Dec 9, 2012 at 1:01 PM, Pieter Hintjens <ph at imatix.com> wrote:

> On Sun, Dec 9, 2012 at 6:24 PM, Stefan Radomski
> <radomski at tk.informatik.tu-darmstadt.de> wrote:
> > And of what use is ZMQ_XPUB_VERBOSE if I can't know the number of
> subscribers?
> In any case you're not guaranteed to receive an ubsubscribe, if
> subscribers disappear without sending those.
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121230/fbd11ca0/attachment.htm>

More information about the zeromq-dev mailing list