[zeromq-dev] Over Unix Domain Sockets?

Martin Sustrik sustrik at fastmq.com
Wed Sep 16 10:21:04 CEST 2009


>> I would start with Unix sockets by taking the existing TCP sockets and 
>> simply updating the configuration to support the different naming scheme.
> Yup. That seems to be the easiest way to start.

Couple of hints that may be helpful to start with IPC implementation:

1. Have a look at zmq::socket_base_t::bind function. You'll find the 
address parsing code there. Currently, the protocols supported are 'tcp' 
and 'pgm'. Add a new one called "ipc".

2. Consider the rest of the address string to be the pipe pathname and 
create the named pipe. Example of full address string: 

3. Create the pipe and open it. Create a session and a zmq_engine 
object. Supply the pipe fd to zmq_engine.

4. Do the same thing for zmq::socket_base_t::connect function - except 
that the pipe isn't created in this case, just opened.


More information about the zeromq-dev mailing list