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.

Thanks,
John

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


On Sun, Dec 9, 2012 at 1:01 PM, Pieter Hintjens <[email protected]> wrote:

> On Sun, Dec 9, 2012 at 6:24 PM, Stefan Radomski
> <[email protected]> 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
> [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