nn_ipc.adoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. nn_ipc(7)
  2. =========
  3. NAME
  4. ----
  5. nn_ipc - inter-process transport mechanism
  6. SYNOPSIS
  7. --------
  8. *#include <nanomsg/nn.h>*
  9. *#include <nanomsg/ipc.h>*
  10. DESCRIPTION
  11. -----------
  12. Inter-process transport allows for sending messages between processes within
  13. a single box. The implementation uses native IPC mechanism provided by the local
  14. operating system and the IPC addresses are thus OS-specific.
  15. On POSIX-compliant systems, UNIX domain sockets are used and IPC addresses are
  16. file references. Note that both relative (ipc://test.ipc) and absolute
  17. (ipc:///tmp/test.ipc) paths may be used. Also note that access rights on the IPC
  18. files must be set in such a way that the appropriate applications can actually
  19. use them.
  20. On Windows, named pipes are used for IPC. IPC address is an arbitrary
  21. case-insensitive string containing any character except for backslash.
  22. Internally, address ipc://test means that named pipe \\.\pipe\test will be used.
  23. EXAMPLE
  24. -------
  25. ----
  26. nn_bind (s1, "ipc:///tmp/test.ipc");
  27. nn_connect (s2, "ipc:///tmp/test.ipc");
  28. ----
  29. SEE ALSO
  30. --------
  31. <<nn_inproc#,nn_inproc(7)>>
  32. <<nn_tcp#,nn_tcp(7)>>
  33. <<nn_bind#,nn_bind(3)>>
  34. <<nn_connect#,nn_connect(3)>>
  35. <<nanomsg#,nanomsg(7)>>
  36. AUTHORS
  37. -------
  38. link:mailto:sustrik@250bpm.com[Martin Sustrik]