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

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


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

> 0MQ needs socket-based internal communication for sending events between
> application threads and I/O threads.
>
> On POSIX platforms it uses socketpair() which in turn uses UNIX domain
> sokcets, ie. there are no TCP connections created in the background.
>
> Unfortunately, on Windows there's no socketpair(). There are NamedPipes
> but these are *not* sockets, rather HANDLEs, which in turn means that
> they can't be polled on using select(). (We would need IOCP support to
> poll on NamedPipes.)
>
> So, 0MQ creates a TCP connection between each socket and the I/O thread
> it uses for background processing.
>
>
Should I try re-writing everything to use Windows events /semaphores/ and
WSA wait API?

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


More information about the zeromq-dev mailing list