[zeromq-dev] How to unblock a socket when on Recieve call

Pieter Hintjens ph at imatix.com
Wed Jan 16 20:52:36 CET 2013


The correct way is to use zmq_poll and only read from a socket when it
has a message waiting.

-Pieter

On Tue, Jan 15, 2013 at 4:05 PM, Paul Kotlyar <unclepaul84 at gmail.com> wrote:
> Hello all,
>
> I am using C# bindings, but i think this is a low level question. How does one
> go about unblocking a zeromq socket while it is on the recieve call. Right now
> i'm just killing the thread on which the socket.recieve call is being made. I
> know that is not the right way to do it. Any comments?
>
>
> Thanks In advance
>
> Paul kotlyar
>
> _______________________________________________
> 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