[zeromq-dev] How to view current SUBs and their filters from PUB side?

余志昌 yuzhichang at gmail.com
Thu Jun 12 10:55:58 CEST 2014


Hi MfG,
    Do you mean use zmq_proxy() to monitor inbound messages of a XPUB
socket?
- Zhichang


2014-06-12 16:06 GMT+08:00 Goswin von Brederlow <goswin-v-b at web.de>:

> You can get infos through a monitoring socket and through a ZAP handler.
>
> MfG
>         Goswin
>
> On Thu, Jun 12, 2014 at 10:44:49AM +0800, ????????? wrote:
> > I'm looking for debug and/or log information. Thanks for your suggestion!
> > - Zhichang
> >
> >
> > 2014-06-12 10:25 GMT+08:00 Michel Pelletier <pelletier.michel at gmail.com
> >:
> >
> > > That would break the transport abstraction in 0mq, not all transports
> are
> > > IP based.  If you're thinking of using IP addresses as a
> > > whitelist/blacklist security mechanism, I would suggest looking at the
> > > curve security stuff instead.  IP based security is easily defeated.
> > >
> > > http://curvezmq.org/
> > >
> > > If you're looking to just log connections, you can get that from the
> OS,
> > > for example on Linux:
> > >
> > > http://gr8idea.info/os/tutorials/security/iptables5.html
> > >
> > > -Michel
> > > On Wed, Jun 11, 2014 at 7:16 PM, ????????? <yuzhichang at gmail.com>
> wrote:
> > >
> > >> Hi Michel,
> > >>     XPUB looks good. However I want more details info: the SUBs'
> address
> > >> info(IP + TCP port). Is that possible?
> > >> Regards,
> > >> Zhichang
> > >>
> > >>
> > >> 2014-06-12 9:40 GMT+08:00 Michel Pelletier <
> pelletier.michel at gmail.com>:
> > >>
> > >> Subscriptions are received in the form of incoming messages you get by
> > >>> calling recv on the xpub socket.
> > >>>
> > >>> http://api.zeromq.org/3-2:zmq-socket
> > >>>
> > >>> "Same as ZMQ_PUB except that you can receive subscriptions from the
> > >>> peers in form of incoming messages. Subscription message is a byte 1
> (for
> > >>> subscriptions) or byte 0 (for unsubscriptions) followed by the
> subscription
> > >>> body."
> > >>>
> > >>> -Michel
> > >>>
> > >>>
> > >>> On Wed, Jun 11, 2014 at 6:26 PM, ????????? <yuzhichang at gmail.com>
> wrote:
> > >>>
> > >>>> I don't see routines to dump xpub_t::subscriptions.
> > >>>>
> > >>>> Regards,
> > >>>> Zhichang
> > >>>>
> > >>>> _______________________________________________
> > >>>> zeromq-dev mailing list
> > >>>> zeromq-dev at lists.zeromq.org
> > >>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> > >>>>
> > >>>>
> > >>>
> > >>> _______________________________________________
> > >>> zeromq-dev mailing list
> > >>> zeromq-dev at lists.zeromq.org
> > >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> > >>>
> > >>>
> > >>
> > >> _______________________________________________
> > >> zeromq-dev mailing list
> > >> zeromq-dev at lists.zeromq.org
> > >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> > >>
> > >>
> > >
> > > _______________________________________________
> > > zeromq-dev mailing list
> > > zeromq-dev at lists.zeromq.org
> > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> > >
> > >
>
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> 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/20140612/749685b4/attachment.htm>


More information about the zeromq-dev mailing list