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

NAME

6       zmq_tipc - 0MQ unicast transport using TIPC
7

SYNOPSIS

9       TIPC is a cluster IPC protocol with a location transparent addressing
10       scheme.
11

ADDRESSING

13       A 0MQ endpoint is a string consisting of a transport:// followed by an
14       address. The transport specifies the underlying protocol to use. The
15       address specifies the transport-specific address to connect to.
16
17       For the TIPC transport, the transport is tipc, and the meaning of the
18       address part is defined below.
19
20   Assigning a port name to a socket
21       When assigning a port name to a socket using zmq_bind() with the tipc
22       transport, the endpoint is defined in the form: {type, lower, upper}
23
24       •   Type is the numerical (u32) ID of your service.
25
26       •   Lower and Upper specify a range for your service.
27
28       Publishing the same service with overlapping lower/upper ID’s will
29       cause connection requests to be distributed over these in a round-robin
30       manner.
31
32   Connecting a socket
33       When connecting a socket to a peer address using zmq_connect() with the
34       tipc transport, the endpoint shall be interpreted as a service ID,
35       followed by a comma and the instance ID.
36
37       The instance ID must be within the lower/upper range of a published
38       port name for the endpoint to be valid.
39

EXAMPLES

41       Assigning a local address to a socket.
42
43           //  Publish TIPC service ID 5555
44           rc = zmq_bind(socket, "tipc://{5555,0,0}");
45           assert (rc == 0);
46           //  Publish TIPC service ID 5555 with a service range of 0-100
47           rc = zmq_bind(socket, "tipc://{5555,0,100}");
48           assert (rc == 0);
49
50       Connecting a socket.
51
52           //  Connect to service 5555 instance id 50
53           rc = zmq_connect(socket, "tipc://{5555,50}");
54           assert (rc == 0);
55
56

SEE ALSO

58       zmq_bind(3) zmq_connect(3) zmq_tcp(7) zmq_pgm(7) zmq_ipc(7)
59       zmq_inproc(7) zmq_vmci(7) zmq(7)
60

AUTHORS

62       This page was written by the 0MQ community. To make a change please
63       read the 0MQ Contribution Policy at
64       http://www.zeromq.org/docs:contributing.
65
66
67
680MQ 4.3.4                         07/23/2022                       ZMQ_TIPC(7)
Impressum