nanomsg.adoc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. nanomsg(7)
  2. ==========
  3. NAME
  4. ----
  5. nanomsg - scalability protocols library
  6. SYNOPSIS
  7. --------
  8. *cc* ['flags'] 'files' *-lnanomsg* ['libraries']
  9. DESCRIPTION
  10. -----------
  11. Following functions are exported by nanomsg library:
  12. Create an SP socket::
  13. <<nn_socket#,nn_socket(3)>>
  14. Close an SP socket::
  15. <<nn_close#,nn_close(3)>>
  16. Set a socket option::
  17. <<nn_setsockopt#,nn_setsockopt(3)>>
  18. Retrieve a socket option::
  19. <<nn_getsockopt#,nn_getsockopt(3)>>
  20. Add a local endpoint to the socket::
  21. <<nn_bind#,nn_bind(3)>>
  22. Add a remote endpoint to the socket::
  23. <<nn_connect#,nn_connect(3)>>
  24. Remove an endpoint from the socket::
  25. <<nn_shutdown#,nn_shutdown(3)>>
  26. Send a message::
  27. <<nn_send#,nn_send(3)>>
  28. Receive a message::
  29. <<nn_recv#,nn_recv(3)>>
  30. Fine-grained alternative to nn_send::
  31. <<nn_sendmsg#,nn_sendmsg(3)>>
  32. Fine-grained alternative to nn_recv::
  33. <<nn_recvmsg#,nn_recvmsg(3)>>
  34. Allocation of messages::
  35. <<nn_allocmsg#,nn_allocmsg(3)>>
  36. <<nn_reallocmsg#,nn_reallocmsg(3)>>
  37. <<nn_freemsg#,nn_freemsg(3)>>
  38. Manipulation of message control data::
  39. <<nn_cmsg#,nn_cmsg(3)>>
  40. Multiplexing::
  41. <<nn_poll#,nn_poll(3)>>
  42. Retrieve the current errno::
  43. <<nn_errno#,nn_errno(3)>>
  44. Convert an error number into human-readable string::
  45. <<nn_strerror#,nn_strerror(3)>>
  46. Query the names and values of nanomsg symbols::
  47. <<nn_symbol#,nn_symbol(3)>>
  48. Query properties of nanomsg symbols::
  49. <<nn_symbol_info#,nn_symbol_info(3)>>
  50. Query statistics on a socket::
  51. <<nn_get_statistic#,nn_get_statistic(3)>>
  52. Start a device::
  53. <<nn_device#,nn_device(3)>>
  54. Notify all sockets about process termination::
  55. <<nn_term#,nn_term(3)>>
  56. Environment variables that influence nanomsg work::
  57. <<nn_env#,nn_env(7)>>
  58. Following scalability protocols are provided by nanomsg:
  59. One-to-one protocol::
  60. <<nn_pair#,nn_pair(7)>>
  61. Request/reply protocol::
  62. <<nn_reqrep#,nn_reqrep(7)>>
  63. Publish/subscribe protocol::
  64. <<nn_pubsub#,nn_pubsub(7)>>
  65. Survey protocol::
  66. <<nn_survey#,nn_survey(7)>>
  67. Pipeline protocol::
  68. <<nn_pipeline#,nn_pipeline(7)>>
  69. Message bus protocol::
  70. <<nn_bus#,nn_bus(7)>>
  71. Following transport mechanisms are provided by nanomsg:
  72. In-process transport::
  73. <<nn_inproc#,nn_inproc(7)>>
  74. Inter-process transport::
  75. <<nn_ipc#,nn_ipc(7)>>
  76. TCP transport::
  77. <<nn_tcp#,nn_tcp(7)>>
  78. WebSocket transport::
  79. <<nn_ws#,nn_ws(7)>>
  80. The following tool is installed with the library:
  81. nanocat::
  82. <<nanocat#,nanocat(1)>>
  83. AUTHORS
  84. -------
  85. link:mailto:garrett@damore.org[Garrett D'Amore]
  86. link:mailto:sustrik@250bpm.com[Martin Sustrik]