Closed Robinini closed 7 years ago
I don't think the draft methods are implemented in Pyre indeed. It's quite easy to add them though. A pull request is very welcomed!
Just mimic the method peers() in pyre.py: https://github.com/zeromq/pyre/blob/master/pyre/pyre.py#L201
And how that's handled in pyre_node.py: https://github.com/zeromq/pyre/blob/master/pyre/pyre_node.py#L236
You can just look at the same C files in zyre to see how it's handled there
Thanks - will look into it. University should be able to support. May well be able to add some improvements after the project is closed. Thanks again all.
Hello
Thanks for the Python Port - I'm using it in a University project at the moment. I would like to obtain a list of the current peers which are members of a specific group.
Pyre provides
Pyre.peers()
which seems to be an implementation of Zyrezyre_peers()
(see below or https://github.com/zeromq/zyre#toc3-188) and according to my tests provides all peers.Is there an implementation of Zyre z
yre_peers_by_group()
(see below or https://github.com/zeromq/zyre#toc3-188) which returns only peers which belong to this group?If this is not implemented, could anyone recommend a way of achieving this?
Grateful for any assistance.