[zeromq-dev] Problem: ipc:// does not work on Windows

Pieter Hintjens ph at imatix.com
Thu Oct 2 14:12:34 CEST 2014


This is annoying mainly because it hurts code portability and also
because ipc:// (especially with abstract endpoints) is a nicer
semantic for local services than TCP ports. e.g. I've a protocol
called zccp and the default location for a zccp broker is
ipc://@/zccp.

Solution: cheat, on Windows

Real solution: accept "ipc://" endpoints and hash them to a socket
number in the ephemeral range, then bind/connect on 127.0.0.1 with
that port number.

Difficulty: hash conflicts. :-)

If anyone has a plausible solution to hash conflicts (registry?) then
this should be quite simple to make.

-Pieter



More information about the zeromq-dev mailing list