1ZMQ_IPC(7) 0MQ Manual ZMQ_IPC(7)
2
3
4
6 zmq_ipc - 0MQ local inter-process communication transport
7
9 The inter-process transport passes messages between local processes
10 using a system-dependent IPC mechanism.
11
12 Note
13 The inter-process transport is currently only implemented on
14 operating systems that provide UNIX domain sockets.
15
17 A 0MQ address string consists of two parts as follows:
18 transport://endpoint. The transport part specifies the underlying
19 transport protocol to use, and for the inter-process transport shall be
20 set to ipc. The meaning of the endpoint part for the inter-process
21 transport is defined below.
22
23 Assigning a local address to a socket
24 When assigning a local address to a socket using zmq_bind() with the
25 ipc transport, the endpoint shall be interpreted as an arbitrary string
26 identifying the pathname to create. The pathname must be unique within
27 the operating system namespace used by the ipc implementation, and must
28 fulfill any restrictions placed by the operating system on the format
29 and length of a pathname.
30
31 Connecting a socket
32 When connecting a socket to a peer address using zmq_connect() with the
33 ipc transport, the endpoint shall be interpreted as an arbitrary string
34 identifying the pathname to connect to. The pathname must have been
35 previously created within the operating system namespace by assigning
36 it to a socket with zmq_bind().
37
39 Not applicable.
40
42 Assigning a local address to a socket.
43
44 /* Assign the pathname "/tmp/feeds/0" */
45 rc = zmq_bind(socket, "ipc:///tmp/feeds/0");
46 assert (rc == 0);
47
48 Connecting a socket.
49
50 /* Connect to the pathname "/tmp/feeds/0" */
51 rc = zmq_connect(socket, "ipc:///tmp/feeds/0");
52 assert (rc == 0);
53
54
56 zmq_bind(3) zmq_connect(3) zmq_inproc(7) zmq_tcp(7) zmq_pgm(7) zmq(7)
57
59 This 0MQ manual page was written by Martin Sustrik
60 <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
61
63 1. sustrik@250bpm.com
64 mailto:sustrik@250bpm.com
65
66 2. mato@kotelna.sk
67 mailto:mato@kotelna.sk
68
69
70
710MQ 2.1.4 03/30/2011 ZMQ_IPC(7)