[zeromq-dev] Zyre frontend polling and waiting for a reply

Pieter Hintjens ph at imatix.com
Mon Nov 17 15:10:25 CET 2014


This is why in Zyre (and newer actor models) we use a second socket
for data transfer.

https://github.com/zeromq/zyre/commit/c684cad

-Pieter

On Mon, Nov 17, 2014 at 1:58 PM, Arnaud Loonstra <arnaud at sphaero.org> wrote:
> Suppose I have the zyre frontend socket in my app in a poller.
>
> Every activity on the socket would then be handled by a method
> retrieving the frames from the socket.
>
> If I want to retrieve header info of a peer I would call
>
> zyre_peer_header_value
>
> However this call ends with retrieving messages from the socket. This
> could potentially conflict with the method called by the poller.
>
> I'm running into this currently with Pyre but Pyre is doing the same as
> Zyre hence my question.
>
> Rg,
>
> Arnaud
> --
> w: http://www.sphaero.org
> t: http://twitter.com/sphaero
> g: http://github.com/sphaero
> i: freenode: sphaero_z25
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list