1ZMQ_INPROC(7)                     0MQ Manual                     ZMQ_INPROC(7)
2
3
4

NAME

6       zmq_inproc - 0MQ local in-process (inter-thread) communication
7       transport
8

SYNOPSIS

10       The in-process transport passes messages via memory directly between
11       threads sharing a single 0MQ context.
12
13           Note
14           No I/O threads are involved in passing messages using the inproc
15           transport. Therefore, if you are using a 0MQ context for in-process
16           messaging only you can initialise the context with zero I/O
17           threads. See zmq_init(3) for details.
18

ADDRESSING

20       A 0MQ address string consists of two parts as follows:
21       transport://endpoint. The transport part specifies the underlying
22       transport protocol to use, and for the in-process transport shall be
23       set to inproc. The meaning of the endpoint part for the in-process
24       transport is defined below.
25
26   Assigning a local address to a socket
27       When assigning a local address to a socket using zmq_bind() with the
28       inproc transport, the endpoint shall be interpreted as an arbitrary
29       string identifying the name to create. The name must be unique within
30       the 0MQ context associated with the socket and may be up to 256
31       characters in length. No other restrictions are placed on the format of
32       the name.
33
34   Connecting a socket
35       When connecting a socket to a peer address using zmq_connect() with the
36       inproc transport, the endpoint shall be interpreted as an arbitrary
37       string identifying the name to connect to. The name must have been
38       previously created by assigning it to at least one socket within the
39       same 0MQ context as the socket being connected.
40

WIRE FORMAT

42       Not applicable.
43

EXAMPLES

45       Assigning a local address to a socket.
46
47           /* Assign the in-process name "#1" */
48           rc = zmq_bind(socket, "inproc://#1");
49           assert (rc == 0);
50           /* Assign the in-process name "my-endpoint" */
51           rc = zmq_bind(socket, "inproc://my-endpoint");
52           assert (rc == 0);
53
54       Connecting a socket.
55
56           /* Connect to the in-process name "#1" */
57           rc = zmq_connect(socket, "inproc://#1");
58           assert (rc == 0);
59           /* Connect to the in-process name "my-endpoint" */
60           rc = zmq_connect(socket, "inproc://my-endpoint");
61           assert (rc == 0);
62
63

SEE ALSO

65       zmq_bind(3) zmq_connect(3) zmq_ipc(7) zmq_tcp(7) zmq_pgm(7) zmq(7)
66

AUTHORS

68       This 0MQ manual page was written by Martin Sustrik
69       <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
70

NOTES

72        1. sustrik@250bpm.com
73           mailto:sustrik@250bpm.com
74
75        2. mato@kotelna.sk
76           mailto:mato@kotelna.sk
77
78
79
800MQ 2.1.4                         03/30/2011                     ZMQ_INPROC(7)
Impressum