zmq_tipc.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. zmq_tipc(7)
  2. ==========
  3. NAME
  4. ----
  5. zmq_tipc - 0MQ unicast transport using TIPC
  6. SYNOPSIS
  7. --------
  8. TIPC is a cluster IPC protocol with a location transparent addressing scheme.
  9. ADDRESSING
  10. ----------
  11. A 0MQ endpoint is a string consisting of a 'transport'`://` followed by an
  12. 'address'. The 'transport' specifies the underlying protocol to use. The
  13. 'address' specifies the transport-specific address to connect to.
  14. For the TIPC transport, the transport is `tipc`, and the meaning of the
  15. 'address' part is defined below.
  16. Assigning a port name to a socket
  17. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. When assigning a port name to a socket using _zmq_bind()_ with the 'tipc'
  19. transport, the 'endpoint' is defined in the form:
  20. {type, lower, upper}
  21. * Type is the numerical (u32) ID of your service.
  22. * Lower and Upper specify a range for your service.
  23. Publishing the same service with overlapping lower/upper ID's will
  24. cause connection requests to be distributed over these in a round-robin
  25. manner.
  26. Connecting a socket
  27. ~~~~~~~~~~~~~~~~~~~
  28. When connecting a socket to a peer address using _zmq_connect()_ with the 'tipc'
  29. transport, the 'endpoint' shall be interpreted as a service ID, followed by a
  30. comma and the instance ID.
  31. The instance ID must be within the lower/upper range of a published port name
  32. for the endpoint to be valid.
  33. EXAMPLES
  34. --------
  35. .Assigning a local address to a socket
  36. ----
  37. // Publish TIPC service ID 5555
  38. rc = zmq_bind(socket, "tipc://{5555,0,0}");
  39. assert (rc == 0);
  40. // Publish TIPC service ID 5555 with a service range of 0-100
  41. rc = zmq_bind(socket, "tipc://{5555,0,100}");
  42. assert (rc == 0);
  43. ----
  44. .Connecting a socket
  45. ----
  46. // Connect to service 5555 instance id 50
  47. rc = zmq_connect(socket, "tipc://{5555,50}");
  48. assert (rc == 0);
  49. ----
  50. SEE ALSO
  51. --------
  52. linkzmq:zmq_bind[3]
  53. linkzmq:zmq_connect[3]
  54. linkzmq:zmq_tcp[7]
  55. linkzmq:zmq_pgm[7]
  56. linkzmq:zmq_ipc[7]
  57. linkzmq:zmq_inproc[7]
  58. linkzmq:zmq_vmci[7]
  59. linkzmq:zmq[7]
  60. AUTHORS
  61. -------
  62. This page was written by the 0MQ community. To make a change please
  63. read the 0MQ Contribution Policy at <http://www.zeromq.org/docs:contributing>.