[zeromq-dev] ZMQ occupies random TCP ports on Windows

Steven McCoy steven.mccoy at miru.hk
Wed Sep 28 17:28:26 CEST 2011


On 28 September 2011 11:26, Martin Sustrik <sustrik at 250bpm.com> wrote:

> On 09/28/2011 05:21 PM, Steven McCoy wrote:
>
>  Should I try re-writing everything to use Windows events /semaphores/
>> and WSA wait API?
>>
>
> The problem is that I/O threads have to wait for sockets (TCP connections
> and alike) and signaler (internal commands) at the same time.
>
> Thus, if the signaler is implemented using an event, you would need a
> function to poll on both events and sockets.
>
> AFAIK select() doesn't support that kind of thing. Which brings us back to
> the IOCP discussion :|
>
>
You can promote sockets to handles but not the other way, which means it
might be possible to swap around underneath the 0mq API.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110928/6900bca4/attachment.htm>


More information about the zeromq-dev mailing list