libzmq 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. data/LICENSE +703 -0
  2. data/README.md +31 -0
  3. data/lib/libzmq.rb +17 -0
  4. data/lib/libzmq/ffi-rzmq.rb +3 -0
  5. data/libzmq/Makefile +5 -0
  6. data/libzmq/extconf.rb +24 -0
  7. data/libzmq/zeromq-2.1.7/AUTHORS +92 -0
  8. data/libzmq/zeromq-2.1.7/COPYING +674 -0
  9. data/libzmq/zeromq-2.1.7/COPYING.LESSER +206 -0
  10. data/libzmq/zeromq-2.1.7/ChangeLog +15620 -0
  11. data/libzmq/zeromq-2.1.7/INSTALL +237 -0
  12. data/libzmq/zeromq-2.1.7/MAINTAINERS +56 -0
  13. data/libzmq/zeromq-2.1.7/Makefile.am +42 -0
  14. data/libzmq/zeromq-2.1.7/Makefile.in +779 -0
  15. data/libzmq/zeromq-2.1.7/NEWS +275 -0
  16. data/libzmq/zeromq-2.1.7/README +39 -0
  17. data/libzmq/zeromq-2.1.7/acinclude.m4 +582 -0
  18. data/libzmq/zeromq-2.1.7/aclocal.m4 +1206 -0
  19. data/libzmq/zeromq-2.1.7/autogen.sh +45 -0
  20. data/libzmq/zeromq-2.1.7/builds/msvc/Makefile.am +8 -0
  21. data/libzmq/zeromq-2.1.7/builds/msvc/Makefile.in +390 -0
  22. data/libzmq/zeromq-2.1.7/builds/msvc/c_local_lat/c_local_lat.vcproj +176 -0
  23. data/libzmq/zeromq-2.1.7/builds/msvc/c_local_thr/c_local_thr.vcproj +176 -0
  24. data/libzmq/zeromq-2.1.7/builds/msvc/c_remote_lat/c_remote_lat.vcproj +176 -0
  25. data/libzmq/zeromq-2.1.7/builds/msvc/c_remote_thr/c_remote_thr.vcproj +176 -0
  26. data/libzmq/zeromq-2.1.7/builds/msvc/libzmq/libzmq.vcproj +783 -0
  27. data/libzmq/zeromq-2.1.7/builds/msvc/msvc.sln +89 -0
  28. data/libzmq/zeromq-2.1.7/builds/msvc/platform.hpp +32 -0
  29. data/libzmq/zeromq-2.1.7/builds/redhat/zeromq.spec.in +139 -0
  30. data/libzmq/zeromq-2.1.7/config/compile +143 -0
  31. data/libzmq/zeromq-2.1.7/config/config.guess +1502 -0
  32. data/libzmq/zeromq-2.1.7/config/config.sub +1714 -0
  33. data/libzmq/zeromq-2.1.7/config/depcomp +630 -0
  34. data/libzmq/zeromq-2.1.7/config/install-sh +520 -0
  35. data/libzmq/zeromq-2.1.7/config/libtool.m4 +7377 -0
  36. data/libzmq/zeromq-2.1.7/config/ltmain.sh +8413 -0
  37. data/libzmq/zeromq-2.1.7/config/ltoptions.m4 +368 -0
  38. data/libzmq/zeromq-2.1.7/config/ltsugar.m4 +123 -0
  39. data/libzmq/zeromq-2.1.7/config/ltversion.m4 +23 -0
  40. data/libzmq/zeromq-2.1.7/config/lt~obsolete.m4 +92 -0
  41. data/libzmq/zeromq-2.1.7/config/missing +376 -0
  42. data/libzmq/zeromq-2.1.7/configure +21645 -0
  43. data/libzmq/zeromq-2.1.7/configure.in +380 -0
  44. data/libzmq/zeromq-2.1.7/doc/Makefile.am +46 -0
  45. data/libzmq/zeromq-2.1.7/doc/Makefile.in +546 -0
  46. data/libzmq/zeromq-2.1.7/doc/asciidoc.conf +56 -0
  47. data/libzmq/zeromq-2.1.7/doc/zmq.7 +242 -0
  48. data/libzmq/zeromq-2.1.7/doc/zmq.html +846 -0
  49. data/libzmq/zeromq-2.1.7/doc/zmq.txt +218 -0
  50. data/libzmq/zeromq-2.1.7/doc/zmq_bind.3 +166 -0
  51. data/libzmq/zeromq-2.1.7/doc/zmq_bind.html +746 -0
  52. data/libzmq/zeromq-2.1.7/doc/zmq_bind.txt +91 -0
  53. data/libzmq/zeromq-2.1.7/doc/zmq_close.3 +81 -0
  54. data/libzmq/zeromq-2.1.7/doc/zmq_close.html +645 -0
  55. data/libzmq/zeromq-2.1.7/doc/zmq_close.txt +52 -0
  56. data/libzmq/zeromq-2.1.7/doc/zmq_connect.3 +161 -0
  57. data/libzmq/zeromq-2.1.7/doc/zmq_connect.html +732 -0
  58. data/libzmq/zeromq-2.1.7/doc/zmq_connect.txt +89 -0
  59. data/libzmq/zeromq-2.1.7/doc/zmq_cpp.7 +410 -0
  60. data/libzmq/zeromq-2.1.7/doc/zmq_cpp.html +765 -0
  61. data/libzmq/zeromq-2.1.7/doc/zmq_cpp.txt +212 -0
  62. data/libzmq/zeromq-2.1.7/doc/zmq_device.3 +140 -0
  63. data/libzmq/zeromq-2.1.7/doc/zmq_device.html +736 -0
  64. data/libzmq/zeromq-2.1.7/doc/zmq_device.txt +138 -0
  65. data/libzmq/zeromq-2.1.7/doc/zmq_epgm.7 +209 -0
  66. data/libzmq/zeromq-2.1.7/doc/zmq_epgm.html +749 -0
  67. data/libzmq/zeromq-2.1.7/doc/zmq_epgm.txt +162 -0
  68. data/libzmq/zeromq-2.1.7/doc/zmq_errno.3 +78 -0
  69. data/libzmq/zeromq-2.1.7/doc/zmq_errno.html +634 -0
  70. data/libzmq/zeromq-2.1.7/doc/zmq_errno.txt +50 -0
  71. data/libzmq/zeromq-2.1.7/doc/zmq_getsockopt.3 +944 -0
  72. data/libzmq/zeromq-2.1.7/doc/zmq_getsockopt.html +1713 -0
  73. data/libzmq/zeromq-2.1.7/doc/zmq_getsockopt.txt +407 -0
  74. data/libzmq/zeromq-2.1.7/doc/zmq_init.3 +71 -0
  75. data/libzmq/zeromq-2.1.7/doc/zmq_init.html +635 -0
  76. data/libzmq/zeromq-2.1.7/doc/zmq_init.txt +51 -0
  77. data/libzmq/zeromq-2.1.7/doc/zmq_inproc.7 +115 -0
  78. data/libzmq/zeromq-2.1.7/doc/zmq_inproc.html +669 -0
  79. data/libzmq/zeromq-2.1.7/doc/zmq_inproc.txt +89 -0
  80. data/libzmq/zeromq-2.1.7/doc/zmq_ipc.7 +109 -0
  81. data/libzmq/zeromq-2.1.7/doc/zmq_ipc.html +662 -0
  82. data/libzmq/zeromq-2.1.7/doc/zmq_ipc.txt +80 -0
  83. data/libzmq/zeromq-2.1.7/doc/zmq_msg_close.3 +81 -0
  84. data/libzmq/zeromq-2.1.7/doc/zmq_msg_close.html +647 -0
  85. data/libzmq/zeromq-2.1.7/doc/zmq_msg_close.txt +55 -0
  86. data/libzmq/zeromq-2.1.7/doc/zmq_msg_copy.3 +95 -0
  87. data/libzmq/zeromq-2.1.7/doc/zmq_msg_copy.html +656 -0
  88. data/libzmq/zeromq-2.1.7/doc/zmq_msg_copy.txt +57 -0
  89. data/libzmq/zeromq-2.1.7/doc/zmq_msg_data.3 +76 -0
  90. data/libzmq/zeromq-2.1.7/doc/zmq_msg_data.html +633 -0
  91. data/libzmq/zeromq-2.1.7/doc/zmq_msg_data.txt +48 -0
  92. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init.3 +110 -0
  93. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init.html +656 -0
  94. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init.txt +65 -0
  95. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_data.3 +138 -0
  96. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_data.html +678 -0
  97. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_data.txt +83 -0
  98. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_size.3 +97 -0
  99. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_size.html +656 -0
  100. data/libzmq/zeromq-2.1.7/doc/zmq_msg_init_size.txt +58 -0
  101. data/libzmq/zeromq-2.1.7/doc/zmq_msg_move.3 +79 -0
  102. data/libzmq/zeromq-2.1.7/doc/zmq_msg_move.html +645 -0
  103. data/libzmq/zeromq-2.1.7/doc/zmq_msg_move.txt +52 -0
  104. data/libzmq/zeromq-2.1.7/doc/zmq_msg_size.3 +76 -0
  105. data/libzmq/zeromq-2.1.7/doc/zmq_msg_size.html +633 -0
  106. data/libzmq/zeromq-2.1.7/doc/zmq_msg_size.txt +48 -0
  107. data/libzmq/zeromq-2.1.7/doc/zmq_pgm.7 +209 -0
  108. data/libzmq/zeromq-2.1.7/doc/zmq_pgm.html +749 -0
  109. data/libzmq/zeromq-2.1.7/doc/zmq_pgm.txt +162 -0
  110. data/libzmq/zeromq-2.1.7/doc/zmq_poll.3 +204 -0
  111. data/libzmq/zeromq-2.1.7/doc/zmq_poll.html +755 -0
  112. data/libzmq/zeromq-2.1.7/doc/zmq_poll.txt +132 -0
  113. data/libzmq/zeromq-2.1.7/doc/zmq_recv.3 +172 -0
  114. data/libzmq/zeromq-2.1.7/doc/zmq_recv.html +746 -0
  115. data/libzmq/zeromq-2.1.7/doc/zmq_recv.txt +121 -0
  116. data/libzmq/zeromq-2.1.7/doc/zmq_send.3 +185 -0
  117. data/libzmq/zeromq-2.1.7/doc/zmq_send.html +755 -0
  118. data/libzmq/zeromq-2.1.7/doc/zmq_send.txt +120 -0
  119. data/libzmq/zeromq-2.1.7/doc/zmq_setsockopt.3 +878 -0
  120. data/libzmq/zeromq-2.1.7/doc/zmq_setsockopt.html +1603 -0
  121. data/libzmq/zeromq-2.1.7/doc/zmq_setsockopt.txt +382 -0
  122. data/libzmq/zeromq-2.1.7/doc/zmq_socket.3 +779 -0
  123. data/libzmq/zeromq-2.1.7/doc/zmq_socket.html +1424 -0
  124. data/libzmq/zeromq-2.1.7/doc/zmq_socket.txt +342 -0
  125. data/libzmq/zeromq-2.1.7/doc/zmq_strerror.3 +78 -0
  126. data/libzmq/zeromq-2.1.7/doc/zmq_strerror.html +634 -0
  127. data/libzmq/zeromq-2.1.7/doc/zmq_strerror.txt +55 -0
  128. data/libzmq/zeromq-2.1.7/doc/zmq_tcp.7 +244 -0
  129. data/libzmq/zeromq-2.1.7/doc/zmq_tcp.html +755 -0
  130. data/libzmq/zeromq-2.1.7/doc/zmq_tcp.txt +162 -0
  131. data/libzmq/zeromq-2.1.7/doc/zmq_term.3 +135 -0
  132. data/libzmq/zeromq-2.1.7/doc/zmq_term.html +672 -0
  133. data/libzmq/zeromq-2.1.7/doc/zmq_term.txt +65 -0
  134. data/libzmq/zeromq-2.1.7/doc/zmq_version.3 +78 -0
  135. data/libzmq/zeromq-2.1.7/doc/zmq_version.html +632 -0
  136. data/libzmq/zeromq-2.1.7/doc/zmq_version.txt +53 -0
  137. data/libzmq/zeromq-2.1.7/foreign/openpgm/Makefile.am +8 -0
  138. data/libzmq/zeromq-2.1.7/foreign/openpgm/Makefile.in +588 -0
  139. data/libzmq/zeromq-2.1.7/foreign/openpgm/libpgm-5.1.115~dfsg.tar.gz +0 -0
  140. data/libzmq/zeromq-2.1.7/foreign/xmlParser/xmlParser.cpp +2923 -0
  141. data/libzmq/zeromq-2.1.7/foreign/xmlParser/xmlParser.hpp +762 -0
  142. data/libzmq/zeromq-2.1.7/include/zmq.h +269 -0
  143. data/libzmq/zeromq-2.1.7/include/zmq.hpp +301 -0
  144. data/libzmq/zeromq-2.1.7/include/zmq_utils.h +64 -0
  145. data/libzmq/zeromq-2.1.7/perf/Makefile.am +21 -0
  146. data/libzmq/zeromq-2.1.7/perf/Makefile.in +566 -0
  147. data/libzmq/zeromq-2.1.7/perf/inproc_lat.cpp +232 -0
  148. data/libzmq/zeromq-2.1.7/perf/inproc_thr.cpp +246 -0
  149. data/libzmq/zeromq-2.1.7/perf/local_lat.cpp +108 -0
  150. data/libzmq/zeromq-2.1.7/perf/local_thr.cpp +138 -0
  151. data/libzmq/zeromq-2.1.7/perf/remote_lat.cpp +121 -0
  152. data/libzmq/zeromq-2.1.7/perf/remote_thr.cpp +104 -0
  153. data/libzmq/zeromq-2.1.7/src/Makefile.am +155 -0
  154. data/libzmq/zeromq-2.1.7/src/Makefile.in +1320 -0
  155. data/libzmq/zeromq-2.1.7/src/array.hpp +147 -0
  156. data/libzmq/zeromq-2.1.7/src/atomic_counter.hpp +164 -0
  157. data/libzmq/zeromq-2.1.7/src/atomic_ptr.hpp +159 -0
  158. data/libzmq/zeromq-2.1.7/src/blob.hpp +34 -0
  159. data/libzmq/zeromq-2.1.7/src/clock.cpp +118 -0
  160. data/libzmq/zeromq-2.1.7/src/clock.hpp +60 -0
  161. data/libzmq/zeromq-2.1.7/src/command.cpp +39 -0
  162. data/libzmq/zeromq-2.1.7/src/command.hpp +147 -0
  163. data/libzmq/zeromq-2.1.7/src/config.hpp +88 -0
  164. data/libzmq/zeromq-2.1.7/src/connect_session.cpp +119 -0
  165. data/libzmq/zeromq-2.1.7/src/connect_session.hpp +65 -0
  166. data/libzmq/zeromq-2.1.7/src/ctx.cpp +322 -0
  167. data/libzmq/zeromq-2.1.7/src/ctx.hpp +159 -0
  168. data/libzmq/zeromq-2.1.7/src/decoder.cpp +129 -0
  169. data/libzmq/zeromq-2.1.7/src/decoder.hpp +207 -0
  170. data/libzmq/zeromq-2.1.7/src/device.cpp +120 -0
  171. data/libzmq/zeromq-2.1.7/src/device.hpp +32 -0
  172. data/libzmq/zeromq-2.1.7/src/devpoll.cpp +190 -0
  173. data/libzmq/zeromq-2.1.7/src/devpoll.hpp +100 -0
  174. data/libzmq/zeromq-2.1.7/src/dist.cpp +200 -0
  175. data/libzmq/zeromq-2.1.7/src/dist.hpp +90 -0
  176. data/libzmq/zeromq-2.1.7/src/encoder.cpp +90 -0
  177. data/libzmq/zeromq-2.1.7/src/encoder.hpp +184 -0
  178. data/libzmq/zeromq-2.1.7/src/epoll.cpp +177 -0
  179. data/libzmq/zeromq-2.1.7/src/epoll.hpp +96 -0
  180. data/libzmq/zeromq-2.1.7/src/err.cpp +238 -0
  181. data/libzmq/zeromq-2.1.7/src/err.hpp +145 -0
  182. data/libzmq/zeromq-2.1.7/src/fd.hpp +45 -0
  183. data/libzmq/zeromq-2.1.7/src/fq.cpp +164 -0
  184. data/libzmq/zeromq-2.1.7/src/fq.hpp +80 -0
  185. data/libzmq/zeromq-2.1.7/src/i_engine.hpp +53 -0
  186. data/libzmq/zeromq-2.1.7/src/i_inout.hpp +50 -0
  187. data/libzmq/zeromq-2.1.7/src/i_poll_events.hpp +46 -0
  188. data/libzmq/zeromq-2.1.7/src/io_object.cpp +107 -0
  189. data/libzmq/zeromq-2.1.7/src/io_object.hpp +78 -0
  190. data/libzmq/zeromq-2.1.7/src/io_thread.cpp +109 -0
  191. data/libzmq/zeromq-2.1.7/src/io_thread.hpp +88 -0
  192. data/libzmq/zeromq-2.1.7/src/ip.cpp +339 -0
  193. data/libzmq/zeromq-2.1.7/src/ip.hpp +68 -0
  194. data/libzmq/zeromq-2.1.7/src/kqueue.cpp +194 -0
  195. data/libzmq/zeromq-2.1.7/src/kqueue.hpp +103 -0
  196. data/libzmq/zeromq-2.1.7/src/lb.cpp +174 -0
  197. data/libzmq/zeromq-2.1.7/src/lb.hpp +79 -0
  198. data/libzmq/zeromq-2.1.7/src/libzmq.pc.in +10 -0
  199. data/libzmq/zeromq-2.1.7/src/likely.hpp +33 -0
  200. data/libzmq/zeromq-2.1.7/src/mailbox.cpp +382 -0
  201. data/libzmq/zeromq-2.1.7/src/mailbox.hpp +62 -0
  202. data/libzmq/zeromq-2.1.7/src/msg_content.hpp +52 -0
  203. data/libzmq/zeromq-2.1.7/src/mutex.hpp +121 -0
  204. data/libzmq/zeromq-2.1.7/src/named_session.cpp +85 -0
  205. data/libzmq/zeromq-2.1.7/src/named_session.hpp +57 -0
  206. data/libzmq/zeromq-2.1.7/src/object.cpp +467 -0
  207. data/libzmq/zeromq-2.1.7/src/object.hpp +127 -0
  208. data/libzmq/zeromq-2.1.7/src/options.cpp +336 -0
  209. data/libzmq/zeromq-2.1.7/src/options.hpp +87 -0
  210. data/libzmq/zeromq-2.1.7/src/own.cpp +214 -0
  211. data/libzmq/zeromq-2.1.7/src/own.hpp +140 -0
  212. data/libzmq/zeromq-2.1.7/src/pair.cpp +180 -0
  213. data/libzmq/zeromq-2.1.7/src/pair.hpp +76 -0
  214. data/libzmq/zeromq-2.1.7/src/pgm_receiver.cpp +259 -0
  215. data/libzmq/zeromq-2.1.7/src/pgm_receiver.hpp +129 -0
  216. data/libzmq/zeromq-2.1.7/src/pgm_sender.cpp +215 -0
  217. data/libzmq/zeromq-2.1.7/src/pgm_sender.hpp +105 -0
  218. data/libzmq/zeromq-2.1.7/src/pgm_socket.cpp +705 -0
  219. data/libzmq/zeromq-2.1.7/src/pgm_socket.hpp +118 -0
  220. data/libzmq/zeromq-2.1.7/src/pipe.cpp +409 -0
  221. data/libzmq/zeromq-2.1.7/src/pipe.hpp +214 -0
  222. data/libzmq/zeromq-2.1.7/src/platform.hpp.in +228 -0
  223. data/libzmq/zeromq-2.1.7/src/poll.cpp +180 -0
  224. data/libzmq/zeromq-2.1.7/src/poll.hpp +104 -0
  225. data/libzmq/zeromq-2.1.7/src/poller.hpp +73 -0
  226. data/libzmq/zeromq-2.1.7/src/poller_base.cpp +99 -0
  227. data/libzmq/zeromq-2.1.7/src/poller_base.hpp +84 -0
  228. data/libzmq/zeromq-2.1.7/src/pub.cpp +31 -0
  229. data/libzmq/zeromq-2.1.7/src/pub.hpp +44 -0
  230. data/libzmq/zeromq-2.1.7/src/pull.cpp +61 -0
  231. data/libzmq/zeromq-2.1.7/src/pull.hpp +60 -0
  232. data/libzmq/zeromq-2.1.7/src/push.cpp +62 -0
  233. data/libzmq/zeromq-2.1.7/src/push.hpp +59 -0
  234. data/libzmq/zeromq-2.1.7/src/reaper.cpp +121 -0
  235. data/libzmq/zeromq-2.1.7/src/reaper.hpp +77 -0
  236. data/libzmq/zeromq-2.1.7/src/rep.cpp +131 -0
  237. data/libzmq/zeromq-2.1.7/src/rep.hpp +59 -0
  238. data/libzmq/zeromq-2.1.7/src/req.cpp +121 -0
  239. data/libzmq/zeromq-2.1.7/src/req.hpp +58 -0
  240. data/libzmq/zeromq-2.1.7/src/select.cpp +211 -0
  241. data/libzmq/zeromq-2.1.7/src/select.hpp +116 -0
  242. data/libzmq/zeromq-2.1.7/src/semaphore.hpp +189 -0
  243. data/libzmq/zeromq-2.1.7/src/session.cpp +347 -0
  244. data/libzmq/zeromq-2.1.7/src/session.hpp +150 -0
  245. data/libzmq/zeromq-2.1.7/src/socket_base.cpp +811 -0
  246. data/libzmq/zeromq-2.1.7/src/socket_base.hpp +207 -0
  247. data/libzmq/zeromq-2.1.7/src/stdint.hpp +63 -0
  248. data/libzmq/zeromq-2.1.7/src/sub.cpp +75 -0
  249. data/libzmq/zeromq-2.1.7/src/sub.hpp +50 -0
  250. data/libzmq/zeromq-2.1.7/src/swap.cpp +325 -0
  251. data/libzmq/zeromq-2.1.7/src/swap.hpp +123 -0
  252. data/libzmq/zeromq-2.1.7/src/tcp_connecter.cpp +310 -0
  253. data/libzmq/zeromq-2.1.7/src/tcp_connecter.hpp +81 -0
  254. data/libzmq/zeromq-2.1.7/src/tcp_listener.cpp +371 -0
  255. data/libzmq/zeromq-2.1.7/src/tcp_listener.hpp +73 -0
  256. data/libzmq/zeromq-2.1.7/src/tcp_socket.cpp +228 -0
  257. data/libzmq/zeromq-2.1.7/src/tcp_socket.hpp +72 -0
  258. data/libzmq/zeromq-2.1.7/src/thread.cpp +97 -0
  259. data/libzmq/zeromq-2.1.7/src/thread.hpp +78 -0
  260. data/libzmq/zeromq-2.1.7/src/transient_session.cpp +41 -0
  261. data/libzmq/zeromq-2.1.7/src/transient_session.hpp +52 -0
  262. data/libzmq/zeromq-2.1.7/src/trie.cpp +181 -0
  263. data/libzmq/zeromq-2.1.7/src/trie.hpp +59 -0
  264. data/libzmq/zeromq-2.1.7/src/uuid.cpp +233 -0
  265. data/libzmq/zeromq-2.1.7/src/uuid.hpp +111 -0
  266. data/libzmq/zeromq-2.1.7/src/windows.hpp +79 -0
  267. data/libzmq/zeromq-2.1.7/src/wire.hpp +99 -0
  268. data/libzmq/zeromq-2.1.7/src/xpub.cpp +76 -0
  269. data/libzmq/zeromq-2.1.7/src/xpub.hpp +61 -0
  270. data/libzmq/zeromq-2.1.7/src/xrep.cpp +337 -0
  271. data/libzmq/zeromq-2.1.7/src/xrep.hpp +116 -0
  272. data/libzmq/zeromq-2.1.7/src/xreq.cpp +74 -0
  273. data/libzmq/zeromq-2.1.7/src/xreq.hpp +65 -0
  274. data/libzmq/zeromq-2.1.7/src/xsub.cpp +172 -0
  275. data/libzmq/zeromq-2.1.7/src/xsub.hpp +80 -0
  276. data/libzmq/zeromq-2.1.7/src/ypipe.hpp +209 -0
  277. data/libzmq/zeromq-2.1.7/src/yqueue.hpp +198 -0
  278. data/libzmq/zeromq-2.1.7/src/zmq.cpp +798 -0
  279. data/libzmq/zeromq-2.1.7/src/zmq_connecter.cpp +166 -0
  280. data/libzmq/zeromq-2.1.7/src/zmq_connecter.hpp +92 -0
  281. data/libzmq/zeromq-2.1.7/src/zmq_engine.cpp +220 -0
  282. data/libzmq/zeromq-2.1.7/src/zmq_engine.hpp +87 -0
  283. data/libzmq/zeromq-2.1.7/src/zmq_init.cpp +216 -0
  284. data/libzmq/zeromq-2.1.7/src/zmq_init.hpp +93 -0
  285. data/libzmq/zeromq-2.1.7/src/zmq_listener.cpp +78 -0
  286. data/libzmq/zeromq-2.1.7/src/zmq_listener.hpp +67 -0
  287. data/libzmq/zeromq-2.1.7/tests/Makefile.am +30 -0
  288. data/libzmq/zeromq-2.1.7/tests/Makefile.in +713 -0
  289. data/libzmq/zeromq-2.1.7/tests/test_hwm.cpp +68 -0
  290. data/libzmq/zeromq-2.1.7/tests/test_pair_inproc.cpp +31 -0
  291. data/libzmq/zeromq-2.1.7/tests/test_pair_ipc.cpp +31 -0
  292. data/libzmq/zeromq-2.1.7/tests/test_pair_tcp.cpp +31 -0
  293. data/libzmq/zeromq-2.1.7/tests/test_reqrep_inproc.cpp +31 -0
  294. data/libzmq/zeromq-2.1.7/tests/test_reqrep_ipc.cpp +31 -0
  295. data/libzmq/zeromq-2.1.7/tests/test_reqrep_tcp.cpp +31 -0
  296. data/libzmq/zeromq-2.1.7/tests/test_shutdown_stress.cpp +87 -0
  297. data/libzmq/zeromq-2.1.7/tests/testutil.hpp +130 -0
  298. data/libzmq/zeromq-2.1.7/version.sh +21 -0
  299. data/libzmq/zeromq-2.1.7/zeromq.spec +139 -0
  300. metadata +348 -0
@@ -0,0 +1,382 @@
1
+ zmq_setsockopt(3)
2
+ =================
3
+
4
+
5
+ NAME
6
+ ----
7
+
8
+ zmq_setsockopt - set 0MQ socket options
9
+
10
+
11
+ SYNOPSIS
12
+ --------
13
+ *int zmq_setsockopt (void '*socket', int 'option_name', const void '*option_value', size_t 'option_len');*
14
+
15
+ Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE and
16
+ ZMQ_LINGER, only take effect for subsequent socket bind/connects.
17
+
18
+ DESCRIPTION
19
+ -----------
20
+ The _zmq_setsockopt()_ function shall set the option specified by the
21
+ 'option_name' argument to the value pointed to by the 'option_value' argument
22
+ for the 0MQ socket pointed to by the 'socket' argument. The 'option_len'
23
+ argument is the size of the option value in bytes.
24
+
25
+ The following socket options can be set with the _zmq_setsockopt()_ function:
26
+
27
+
28
+ ZMQ_HWM: Set high water mark
29
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
+ The 'ZMQ_HWM' option shall set the high water mark for the specified 'socket'.
31
+ The high water mark is a hard limit on the maximum number of outstanding
32
+ messages 0MQ shall queue in memory for any single peer that the specified
33
+ 'socket' is communicating with.
34
+
35
+ If this limit has been reached the socket shall enter an exceptional state and
36
+ depending on the socket type, 0MQ shall take appropriate action such as
37
+ blocking or dropping sent messages. Refer to the individual socket descriptions
38
+ in linkzmq:zmq_socket[3] for details on the exact action taken for each socket
39
+ type.
40
+
41
+ The default 'ZMQ_HWM' value of zero means "no limit".
42
+
43
+ [horizontal]
44
+ Option value type:: uint64_t
45
+ Option value unit:: messages
46
+ Default value:: 0
47
+ Applicable socket types:: all
48
+
49
+
50
+ ZMQ_SWAP: Set disk offload size
51
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52
+ The 'ZMQ_SWAP' option shall set the disk offload (swap) size for the specified
53
+ 'socket'. A socket which has 'ZMQ_SWAP' set to a non-zero value may exceed it's
54
+ high water mark; in this case outstanding messages shall be offloaded to
55
+ storage on disk rather than held in memory.
56
+
57
+ The value of 'ZMQ_SWAP' defines the maximum size of the swap space in bytes.
58
+
59
+ [horizontal]
60
+ Option value type:: int64_t
61
+ Option value unit:: bytes
62
+ Default value:: 0
63
+ Applicable socket types:: all
64
+
65
+
66
+ ZMQ_AFFINITY: Set I/O thread affinity
67
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68
+ The 'ZMQ_AFFINITY' option shall set the I/O thread affinity for newly created
69
+ connections on the specified 'socket'.
70
+
71
+ Affinity determines which threads from the 0MQ I/O thread pool associated with
72
+ the socket's _context_ shall handle newly created connections. A value of zero
73
+ specifies no affinity, meaning that work shall be distributed fairly among all
74
+ 0MQ I/O threads in the thread pool. For non-zero values, the lowest bit
75
+ corresponds to thread 1, second lowest bit to thread 2 and so on. For example,
76
+ a value of 3 specifies that subsequent connections on 'socket' shall be handled
77
+ exclusively by I/O threads 1 and 2.
78
+
79
+ See also linkzmq:zmq_init[3] for details on allocating the number of I/O
80
+ threads for a specific _context_.
81
+
82
+ [horizontal]
83
+ Option value type:: uint64_t
84
+ Option value unit:: N/A (bitmap)
85
+ Default value:: 0
86
+ Applicable socket types:: N/A
87
+
88
+
89
+ ZMQ_IDENTITY: Set socket identity
90
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
+ The 'ZMQ_IDENTITY' option shall set the identity of the specified 'socket'.
92
+ Socket identity determines if existing 0MQ infrastructure (_message queues_,
93
+ _forwarding devices_) shall be identified with a specific application and
94
+ persist across multiple runs of the application.
95
+
96
+ If the socket has no identity, each run of an application is completely
97
+ separate from other runs. However, with identity set the socket shall re-use
98
+ any existing 0MQ infrastructure configured by the previous run(s). Thus the
99
+ application may receive messages that were sent in the meantime, _message
100
+ queue_ limits shall be shared with previous run(s) and so on.
101
+
102
+ Identity should be at least one byte and at most 255 bytes long. Identities
103
+ starting with binary zero are reserved for use by 0MQ infrastructure.
104
+
105
+ [horizontal]
106
+ Option value type:: binary data
107
+ Option value unit:: N/A
108
+ Default value:: NULL
109
+ Applicable socket types:: all
110
+
111
+
112
+ ZMQ_SUBSCRIBE: Establish message filter
113
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114
+ The 'ZMQ_SUBSCRIBE' option shall establish a new message filter on a 'ZMQ_SUB'
115
+ socket. Newly created 'ZMQ_SUB' sockets shall filter out all incoming messages,
116
+ therefore you should call this option to establish an initial message filter.
117
+
118
+ An empty 'option_value' of length zero shall subscribe to all incoming
119
+ messages. A non-empty 'option_value' shall subscribe to all messages beginning
120
+ with the specified prefix. Multiple filters may be attached to a single
121
+ 'ZMQ_SUB' socket, in which case a message shall be accepted if it matches at
122
+ least one filter.
123
+
124
+ [horizontal]
125
+ Option value type:: binary data
126
+ Option value unit:: N/A
127
+ Default value:: N/A
128
+ Applicable socket types:: ZMQ_SUB
129
+
130
+
131
+ ZMQ_UNSUBSCRIBE: Remove message filter
132
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133
+ The 'ZMQ_UNSUBSCRIBE' option shall remove an existing message filter on a
134
+ 'ZMQ_SUB' socket. The filter specified must match an existing filter previously
135
+ established with the 'ZMQ_SUBSCRIBE' option. If the socket has several
136
+ instances of the same filter attached the 'ZMQ_UNSUBSCRIBE' option shall remove
137
+ only one instance, leaving the rest in place and functional.
138
+
139
+ [horizontal]
140
+ Option value type:: binary data
141
+ Option value unit:: N/A
142
+ Default value:: N/A
143
+ Applicable socket types:: ZMQ_SUB
144
+
145
+
146
+ ZMQ_RATE: Set multicast data rate
147
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148
+ The 'ZMQ_RATE' option shall set the maximum send or receive data rate for
149
+ multicast transports such as linkzmq:zmq_pgm[7] using the specified 'socket'.
150
+
151
+ [horizontal]
152
+ Option value type:: int64_t
153
+ Option value unit:: kilobits per second
154
+ Default value:: 100
155
+ Applicable socket types:: all, when using multicast transports
156
+
157
+
158
+ ZMQ_RECOVERY_IVL: Set multicast recovery interval
159
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160
+ The 'ZMQ_RECOVERY_IVL' option shall set the recovery interval for multicast
161
+ transports using the specified 'socket'. The recovery interval determines the
162
+ maximum time in seconds that a receiver can be absent from a multicast group
163
+ before unrecoverable data loss will occur.
164
+
165
+ CAUTION: Exercise care when setting large recovery intervals as the data
166
+ needed for recovery will be held in memory. For example, a 1 minute recovery
167
+ interval at a data rate of 1Gbps requires a 7GB in-memory buffer.
168
+
169
+ [horizontal]
170
+ Option value type:: int64_t
171
+ Option value unit:: seconds
172
+ Default value:: 10
173
+ Applicable socket types:: all, when using multicast transports
174
+
175
+
176
+ ZMQ_RECOVERY_IVL_MSEC: Set multicast recovery interval in milliseconds
177
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
178
+ The 'ZMQ_RECOVERY_IVL_MSEC' option shall set the recovery interval, specified
179
+ in milliseconds (ms) for multicast transports using the specified 'socket'.
180
+ The recovery interval determines the maximum time in milliseconds that a
181
+ receiver can be absent from a multicast group before unrecoverable data loss
182
+ will occur.
183
+
184
+ A non-zero value of the 'ZMQ_RECOVERY_IVL_MSEC' option will take precedence
185
+ over the 'ZMQ_RECOVERY_IVL' option, but since the default for the
186
+ 'ZMQ_RECOVERY_IVL_MSEC' is -1, the default is to use the 'ZMQ_RECOVERY_IVL'
187
+ option value.
188
+
189
+ CAUTION: Exercise care when setting large recovery intervals as the data
190
+ needed for recovery will be held in memory. For example, a 1 minute recovery
191
+ interval at a data rate of 1Gbps requires a 7GB in-memory buffer.
192
+
193
+ [horizontal]
194
+ Option value type:: int64_t
195
+ Option value unit:: milliseconds
196
+ Default value:: -1
197
+ Applicable socket types:: all, when using multicast transports
198
+
199
+
200
+ ZMQ_MCAST_LOOP: Control multicast loop-back
201
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
202
+ The 'ZMQ_MCAST_LOOP' option shall control whether data sent via multicast
203
+ transports using the specified 'socket' can also be received by the sending
204
+ host via loop-back. A value of zero disables the loop-back functionality, while
205
+ the default value of 1 enables the loop-back functionality. Leaving multicast
206
+ loop-back enabled when it is not required can have a negative impact on
207
+ performance. Where possible, disable 'ZMQ_MCAST_LOOP' in production
208
+ environments.
209
+
210
+ [horizontal]
211
+ Option value type:: int64_t
212
+ Option value unit:: boolean
213
+ Default value:: 1
214
+ Applicable socket types:: all, when using multicast transports
215
+
216
+
217
+ ZMQ_SNDBUF: Set kernel transmit buffer size
218
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219
+ The 'ZMQ_SNDBUF' option shall set the underlying kernel transmit buffer size
220
+ for the 'socket' to the specified size in bytes. A value of zero means leave
221
+ the OS default unchanged. For details please refer to your operating system
222
+ documentation for the 'SO_SNDBUF' socket option.
223
+
224
+ [horizontal]
225
+ Option value type:: uint64_t
226
+ Option value unit:: bytes
227
+ Default value:: 0
228
+ Applicable socket types:: all
229
+
230
+
231
+ ZMQ_RCVBUF: Set kernel receive buffer size
232
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
233
+ The 'ZMQ_RCVBUF' option shall set the underlying kernel receive buffer size for
234
+ the 'socket' to the specified size in bytes. A value of zero means leave the
235
+ OS default unchanged. For details refer to your operating system documentation
236
+ for the 'SO_RCVBUF' socket option.
237
+
238
+ [horizontal]
239
+ Option value type:: uint64_t
240
+ Option value unit:: bytes
241
+ Default value:: 0
242
+ Applicable socket types:: all
243
+
244
+
245
+ ZMQ_LINGER: Set linger period for socket shutdown
246
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247
+ The 'ZMQ_LINGER' option shall set the linger period for the specified 'socket'.
248
+ The linger period determines how long pending messages which have yet to be
249
+ sent to a peer shall linger in memory after a socket is closed with
250
+ linkzmq:zmq_close[3], and further affects the termination of the socket's
251
+ context with linkzmq:zmq_term[3]. The following outlines the different
252
+ behaviours:
253
+
254
+ * The default value of '-1' specifies an infinite linger period. Pending
255
+ messages shall not be discarded after a call to _zmq_close()_; attempting to
256
+ terminate the socket's context with _zmq_term()_ shall block until all
257
+ pending messages have been sent to a peer.
258
+
259
+ * The value of '0' specifies no linger period. Pending messages shall be
260
+ discarded immediately when the socket is closed with _zmq_close()_.
261
+
262
+ * Positive values specify an upper bound for the linger period in milliseconds.
263
+ Pending messages shall not be discarded after a call to _zmq_close()_;
264
+ attempting to terminate the socket's context with _zmq_term()_ shall block
265
+ until either all pending messages have been sent to a peer, or the linger
266
+ period expires, after which any pending messages shall be discarded.
267
+
268
+ [horizontal]
269
+ Option value type:: int
270
+ Option value unit:: milliseconds
271
+ Default value:: -1 (infinite)
272
+ Applicable socket types:: all
273
+
274
+
275
+ ZMQ_RECONNECT_IVL: Set reconnection interval
276
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
277
+ The 'ZMQ_RECONNECT_IVL' option shall set the initial reconnection interval for
278
+ the specified 'socket'. The reconnection interval is the period 0MQ
279
+ shall wait between attempts to reconnect disconnected peers when using
280
+ connection-oriented transports.
281
+
282
+ NOTE: The reconnection interval may be randomized by 0MQ to prevent
283
+ reconnection storms in topologies with a large number of peers per socket.
284
+
285
+ [horizontal]
286
+ Option value type:: int
287
+ Option value unit:: milliseconds
288
+ Default value:: 100
289
+ Applicable socket types:: all, only for connection-oriented transports
290
+
291
+
292
+ ZMQ_RECONNECT_IVL_MAX: Set maximum reconnection interval
293
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
294
+ The 'ZMQ_RECONNECT_IVL_MAX' option shall set the maximum reconnection interval
295
+ for the specified 'socket'. This is the maximum period 0MQ shall wait between
296
+ attempts to reconnect. On each reconnect attempt, the previous interval shall be
297
+ doubled untill ZMQ_RECONNECT_IVL_MAX is reached. This allows for exponential
298
+ backoff strategy. Default value means no exponential backoff is performed and
299
+ reconnect interval calculations are only based on ZMQ_RECONNECT_IVL.
300
+
301
+ NOTE: Values less than ZMQ_RECONNECT_IVL will be ignored.
302
+
303
+ [horizontal]
304
+ Option value type:: int
305
+ Option value unit:: milliseconds
306
+ Default value:: 0 (only use ZMQ_RECONNECT_IVL)
307
+ Applicable socket types:: all, only for connection-oriented transports
308
+
309
+
310
+ ZMQ_BACKLOG: Set maximum length of the queue of outstanding connections
311
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312
+ The 'ZMQ_BACKLOG' option shall set the maximum length of the queue of
313
+ outstanding peer connections for the specified 'socket'; this only applies to
314
+ connection-oriented transports. For details refer to your operating system
315
+ documentation for the 'listen' function.
316
+
317
+ [horizontal]
318
+ Option value type:: int
319
+ Option value unit:: connections
320
+ Default value:: 100
321
+ Applicable socket types:: all, only for connection-oriented transports.
322
+
323
+
324
+ RETURN VALUE
325
+ ------------
326
+ The _zmq_setsockopt()_ function shall return zero if successful. Otherwise it
327
+ shall return `-1` and set 'errno' to one of the values defined below.
328
+
329
+
330
+ ERRORS
331
+ ------
332
+ *EINVAL*::
333
+ The requested option _option_name_ is unknown, or the requested _option_len_ or
334
+ _option_value_ is invalid.
335
+ *ETERM*::
336
+ The 0MQ 'context' associated with the specified 'socket' was terminated.
337
+ *ENOTSOCK*::
338
+ The provided 'socket' was invalid.
339
+ *EINTR*::
340
+ The operation was interrupted by delivery of a signal.
341
+
342
+
343
+ EXAMPLE
344
+ -------
345
+ .Subscribing to messages on a 'ZMQ_SUB' socket
346
+ ----
347
+ /* Subscribe to all messages */
348
+ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "", 0);
349
+ assert (rc == 0);
350
+ /* Subscribe to messages prefixed with "ANIMALS.CATS" */
351
+ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "ANIMALS.CATS", 12);
352
+ ----
353
+
354
+ .Setting I/O thread affinity
355
+ ----
356
+ int64_t affinity;
357
+ /* Incoming connections on TCP port 5555 shall be handled by I/O thread 1 */
358
+ affinity = 1;
359
+ rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof affinity);
360
+ assert (rc);
361
+ rc = zmq_bind (socket, "tcp://lo:5555");
362
+ assert (rc);
363
+ /* Incoming connections on TCP port 5556 shall be handled by I/O thread 2 */
364
+ affinity = 2;
365
+ rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof affinity);
366
+ assert (rc);
367
+ rc = zmq_bind (socket, "tcp://lo:5556");
368
+ assert (rc);
369
+ ----
370
+
371
+
372
+ SEE ALSO
373
+ --------
374
+ linkzmq:zmq_getsockopt[3]
375
+ linkzmq:zmq_socket[3]
376
+ linkzmq:zmq[7]
377
+
378
+
379
+ AUTHORS
380
+ -------
381
+ This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
382
+ Martin Lucina <mato@kotelna.sk>.
@@ -0,0 +1,779 @@
1
+ '\" t
2
+ .\" Title: zmq_socket
3
+ .\" Author: [see the "AUTHORS" section]
4
+ .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
+ .\" Date: 05/06/2011
6
+ .\" Manual: 0MQ Manual
7
+ .\" Source: 0MQ 2.1.6
8
+ .\" Language: English
9
+ .\"
10
+ .TH "ZMQ_SOCKET" "3" "05/06/2011" "0MQ 2\&.1\&.6" "0MQ Manual"
11
+ .\" -----------------------------------------------------------------
12
+ .\" * Define some portability stuff
13
+ .\" -----------------------------------------------------------------
14
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
+ .\" http://bugs.debian.org/507673
16
+ .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
+ .ie \n(.g .ds Aq \(aq
19
+ .el .ds Aq '
20
+ .\" -----------------------------------------------------------------
21
+ .\" * set default formatting
22
+ .\" -----------------------------------------------------------------
23
+ .\" disable hyphenation
24
+ .nh
25
+ .\" disable justification (adjust text to left margin only)
26
+ .ad l
27
+ .\" -----------------------------------------------------------------
28
+ .\" * MAIN CONTENT STARTS HERE *
29
+ .\" -----------------------------------------------------------------
30
+ .SH "NAME"
31
+ zmq_socket \- create 0MQ socket
32
+ .SH "SYNOPSIS"
33
+ .sp
34
+ \fBvoid *zmq_socket (void \fR\fB\fI*context\fR\fR\fB, int \fR\fB\fItype\fR\fR\fB);\fR
35
+ .SH "DESCRIPTION"
36
+ .sp
37
+ The \fIzmq_socket()\fR function shall create a 0MQ socket within the specified \fIcontext\fR and return an opaque handle to the newly created socket\&. The \fItype\fR argument specifies the socket type, which determines the semantics of communication over the socket\&.
38
+ .sp
39
+ The newly created socket is initially unbound, and not associated with any endpoints\&. In order to establish a message flow a socket must first be connected to at least one endpoint with \fBzmq_connect\fR(3), or at least one endpoint must be created for accepting incoming connections with \fBzmq_bind\fR(3)\&.
40
+ .PP
41
+ \fBKey differences to conventional sockets\fR. Generally speaking, conventional sockets present a
42
+ \fIsynchronous\fR
43
+ interface to either connection\-oriented reliable byte streams (SOCK_STREAM), or connection\-less unreliable datagrams (SOCK_DGRAM)\&. In comparison, 0MQ sockets present an abstraction of an asynchronous
44
+ \fImessage queue\fR, with the exact queueing semantics depending on the socket type in use\&. Where conventional sockets transfer streams of bytes or discrete datagrams, 0MQ sockets transfer discrete
45
+ \fImessages\fR\&.
46
+ .sp
47
+ 0MQ sockets being \fIasynchronous\fR means that the timings of the physical connection setup and tear down, reconnect and effective delivery are transparent to the user and organized by 0MQ itself\&. Further, messages may be \fIqueued\fR in the event that a peer is unavailable to receive them\&.
48
+ .sp
49
+ Conventional sockets allow only strict one\-to\-one (two peers), many\-to\-one (many clients, one server), or in some cases one\-to\-many (multicast) relationships\&. With the exception of \fIZMQ_PAIR\fR, 0MQ sockets may be connected \fBto multiple endpoints\fR using \fIzmq_connect()\fR, while simultaneously accepting incoming connections \fBfrom multiple endpoints\fR bound to the socket using \fIzmq_bind()\fR, thus allowing many\-to\-many relationships\&.
50
+ .PP
51
+ \fBThread safety\fR. 0MQ
52
+ \fIsockets\fR
53
+ are
54
+ \fInot\fR
55
+ thread safe\&. Applications MUST NOT use a socket from multiple threads except after migrating a socket from one thread to another with a "full fence" memory barrier\&.
56
+ .PP
57
+ \fBSocket types\fR. The following sections present the socket types defined by 0MQ, grouped by the general
58
+ \fImessaging pattern\fR
59
+ which is built from related socket types\&.
60
+ .SS "Request\-reply pattern"
61
+ .sp
62
+ The request\-reply pattern is used for sending requests from a \fIclient\fR to one or more instances of a \fIservice\fR, and receiving subsequent replies to each request sent\&.
63
+ .sp
64
+ .it 1 an-trap
65
+ .nr an-no-space-flag 1
66
+ .nr an-break-flag 1
67
+ .br
68
+ .ps +1
69
+ \fBZMQ_REQ\fR
70
+ .RS 4
71
+ .sp
72
+ A socket of type \fIZMQ_REQ\fR is used by a \fIclient\fR to send requests to and receive replies from a \fIservice\fR\&. This socket type allows only an alternating sequence of \fIzmq_send(request)\fR and subsequent \fIzmq_recv(reply)\fR calls\&. Each request sent is load\-balanced among all \fIservices\fR, and each reply received is matched with the last issued request\&.
73
+ .sp
74
+ When a \fIZMQ_REQ\fR socket enters an exceptional state due to having reached the high water mark for all \fIservices\fR, or if there are no \fIservices\fR at all, then any \fBzmq_send\fR(3) operations on the socket shall block until the exceptional state ends or at least one \fIservice\fR becomes available for sending; messages are not discarded\&.
75
+ .sp
76
+ .it 1 an-trap
77
+ .nr an-no-space-flag 1
78
+ .nr an-break-flag 1
79
+ .br
80
+ .B Table\ \&1.\ \&Summary of ZMQ_REQ characteristics
81
+ .TS
82
+ tab(:);
83
+ lt lt
84
+ lt lt
85
+ lt lt
86
+ lt lt
87
+ lt lt
88
+ lt lt.
89
+ T{
90
+ .sp
91
+ Compatible peer sockets
92
+ T}:T{
93
+ .sp
94
+ \fIZMQ_REP\fR
95
+ T}
96
+ T{
97
+ .sp
98
+ Direction
99
+ T}:T{
100
+ .sp
101
+ Bidirectional
102
+ T}
103
+ T{
104
+ .sp
105
+ Send/receive pattern
106
+ T}:T{
107
+ .sp
108
+ Send, Receive, Send, Receive, \&...
109
+ T}
110
+ T{
111
+ .sp
112
+ Outgoing routing strategy
113
+ T}:T{
114
+ .sp
115
+ Load\-balanced
116
+ T}
117
+ T{
118
+ .sp
119
+ Incoming routing strategy
120
+ T}:T{
121
+ .sp
122
+ Last peer
123
+ T}
124
+ T{
125
+ .sp
126
+ ZMQ_HWM option action
127
+ T}:T{
128
+ .sp
129
+ Block
130
+ T}
131
+ .TE
132
+ .sp 1
133
+ .RE
134
+ .sp
135
+ .it 1 an-trap
136
+ .nr an-no-space-flag 1
137
+ .nr an-break-flag 1
138
+ .br
139
+ .ps +1
140
+ \fBZMQ_REP\fR
141
+ .RS 4
142
+ .sp
143
+ A socket of type \fIZMQ_REP\fR is used by a \fIservice\fR to receive requests from and send replies to a \fIclient\fR\&. This socket type allows only an alternating sequence of \fIzmq_recv(request)\fR and subsequent \fIzmq_send(reply)\fR calls\&. Each request received is fair\-queued from among all \fIclients\fR, and each reply sent is routed to the \fIclient\fR that issued the last request\&. If the original requester doesn\(cqt exist any more the reply is silently discarded\&.
144
+ .sp
145
+ When a \fIZMQ_REP\fR socket enters an exceptional state due to having reached the high water mark for a \fIclient\fR, then any replies sent to the \fIclient\fR in question shall be dropped until the exceptional state ends\&.
146
+ .sp
147
+ .it 1 an-trap
148
+ .nr an-no-space-flag 1
149
+ .nr an-break-flag 1
150
+ .br
151
+ .B Table\ \&2.\ \&Summary of ZMQ_REP characteristics
152
+ .TS
153
+ tab(:);
154
+ lt lt
155
+ lt lt
156
+ lt lt
157
+ lt lt
158
+ lt lt
159
+ lt lt.
160
+ T{
161
+ .sp
162
+ Compatible peer sockets
163
+ T}:T{
164
+ .sp
165
+ \fIZMQ_REQ\fR
166
+ T}
167
+ T{
168
+ .sp
169
+ Direction
170
+ T}:T{
171
+ .sp
172
+ Bidirectional
173
+ T}
174
+ T{
175
+ .sp
176
+ Send/receive pattern
177
+ T}:T{
178
+ .sp
179
+ Receive, Send, Receive, Send, \&...
180
+ T}
181
+ T{
182
+ .sp
183
+ Incoming routing strategy
184
+ T}:T{
185
+ .sp
186
+ Fair\-queued
187
+ T}
188
+ T{
189
+ .sp
190
+ Outgoing routing strategy
191
+ T}:T{
192
+ .sp
193
+ Last peer
194
+ T}
195
+ T{
196
+ .sp
197
+ ZMQ_HWM option action
198
+ T}:T{
199
+ .sp
200
+ Drop
201
+ T}
202
+ .TE
203
+ .sp 1
204
+ .RE
205
+ .sp
206
+ .it 1 an-trap
207
+ .nr an-no-space-flag 1
208
+ .nr an-break-flag 1
209
+ .br
210
+ .ps +1
211
+ \fBZMQ_DEALER\fR
212
+ .RS 4
213
+ .sp
214
+ A socket of type \fIZMQ_DEALER\fR is an advanced pattern used for extending request/reply sockets\&. Each message sent is load\-balanced among all connected peers, and each message received is fair\-queued from all connected peers\&.
215
+ .sp
216
+ Previously this socket was called \fIZMQ_XREQ\fR and that name remains available for backwards compatibility\&.
217
+ .sp
218
+ When a \fIZMQ_DEALER\fR socket enters an exceptional state due to having reached the high water mark for all peers, or if there are no peers at all, then any \fBzmq_send\fR(3) operations on the socket shall block until the exceptional state ends or at least one peer becomes available for sending; messages are not discarded\&.
219
+ .sp
220
+ When a \fIZMQ_DEALER\fR socket is connected to a \fIZMQ_REP\fR socket each message sent must consist of an empty message part, the \fIdelimiter\fR, followed by one or more \fIbody parts\fR\&.
221
+ .sp
222
+ .it 1 an-trap
223
+ .nr an-no-space-flag 1
224
+ .nr an-break-flag 1
225
+ .br
226
+ .B Table\ \&3.\ \&Summary of ZMQ_DEALER characteristics
227
+ .TS
228
+ tab(:);
229
+ lt lt
230
+ lt lt
231
+ lt lt
232
+ lt lt
233
+ lt lt
234
+ lt lt.
235
+ T{
236
+ .sp
237
+ Compatible peer sockets
238
+ T}:T{
239
+ .sp
240
+ \fIZMQ_ROUTER\fR, \fIZMQ_REP\fR
241
+ T}
242
+ T{
243
+ .sp
244
+ Direction
245
+ T}:T{
246
+ .sp
247
+ Bidirectional
248
+ T}
249
+ T{
250
+ .sp
251
+ Send/receive pattern
252
+ T}:T{
253
+ .sp
254
+ Unrestricted
255
+ T}
256
+ T{
257
+ .sp
258
+ Outgoing routing strategy
259
+ T}:T{
260
+ .sp
261
+ Load\-balanced
262
+ T}
263
+ T{
264
+ .sp
265
+ Incoming routing strategy
266
+ T}:T{
267
+ .sp
268
+ Fair\-queued
269
+ T}
270
+ T{
271
+ .sp
272
+ ZMQ_HWM option action
273
+ T}:T{
274
+ .sp
275
+ Block
276
+ T}
277
+ .TE
278
+ .sp 1
279
+ .RE
280
+ .sp
281
+ .it 1 an-trap
282
+ .nr an-no-space-flag 1
283
+ .nr an-break-flag 1
284
+ .br
285
+ .ps +1
286
+ \fBZMQ_ROUTER\fR
287
+ .RS 4
288
+ .sp
289
+ A socket of type \fIZMQ_ROUTER\fR is an advanced pattern used for extending request/reply sockets\&. When receiving messages a \fIZMQ_ROUTER\fR socket shall prepend a message part containing the \fIidentity\fR of the originating peer to the message before passing it to the application\&. Messages received are fair\-queued from among all connected peers\&. When sending messages a \fIZMQ_ROUTER\fR socket shall remove the first part of the message and use it to determine the \fIidentity\fR of the peer the message shall be routed to\&. If the peer does not exist anymore the message shall be silently discarded\&.
290
+ .sp
291
+ Previously this socket was called \fIZMQ_XREP\fR and that name remains available for backwards compatibility\&.
292
+ .sp
293
+ When a \fIZMQ_ROUTER\fR socket enters an exceptional state due to having reached the high water mark for all peers, or if there are no peers at all, then any messages sent to the socket shall be dropped until the exceptional state ends\&. Likewise, any messages routed to a non\-existent peer or a peer for which the individual high water mark has been reached shall also be dropped\&.
294
+ .sp
295
+ When a \fIZMQ_REQ\fR socket is connected to a \fIZMQ_ROUTER\fR socket, in addition to the \fIidentity\fR of the originating peer each message received shall contain an empty \fIdelimiter\fR message part\&. Hence, the entire structure of each received message as seen by the application becomes: one or more \fIidentity\fR parts, \fIdelimiter\fR part, one or more \fIbody parts\fR\&. When sending replies to a \fIZMQ_REQ\fR socket the application must include the \fIdelimiter\fR part\&.
296
+ .sp
297
+ .it 1 an-trap
298
+ .nr an-no-space-flag 1
299
+ .nr an-break-flag 1
300
+ .br
301
+ .B Table\ \&4.\ \&Summary of ZMQ_ROUTER characteristics
302
+ .TS
303
+ tab(:);
304
+ lt lt
305
+ lt lt
306
+ lt lt
307
+ lt lt
308
+ lt lt
309
+ lt lt.
310
+ T{
311
+ .sp
312
+ Compatible peer sockets
313
+ T}:T{
314
+ .sp
315
+ \fIZMQ_DEALER\fR, \fIZMQ_REQ\fR
316
+ T}
317
+ T{
318
+ .sp
319
+ Direction
320
+ T}:T{
321
+ .sp
322
+ Bidirectional
323
+ T}
324
+ T{
325
+ .sp
326
+ Send/receive pattern
327
+ T}:T{
328
+ .sp
329
+ Unrestricted
330
+ T}
331
+ T{
332
+ .sp
333
+ Outgoing routing strategy
334
+ T}:T{
335
+ .sp
336
+ See text
337
+ T}
338
+ T{
339
+ .sp
340
+ Incoming routing strategy
341
+ T}:T{
342
+ .sp
343
+ Fair\-queued
344
+ T}
345
+ T{
346
+ .sp
347
+ ZMQ_HWM option action
348
+ T}:T{
349
+ .sp
350
+ Drop
351
+ T}
352
+ .TE
353
+ .sp 1
354
+ .RE
355
+ .SS "Publish\-subscribe pattern"
356
+ .sp
357
+ The publish\-subscribe pattern is used for one\-to\-many distribution of data from a single \fIpublisher\fR to multiple \fIsubscribers\fR in a fan out fashion\&.
358
+ .sp
359
+ .it 1 an-trap
360
+ .nr an-no-space-flag 1
361
+ .nr an-break-flag 1
362
+ .br
363
+ .ps +1
364
+ \fBZMQ_PUB\fR
365
+ .RS 4
366
+ .sp
367
+ A socket of type \fIZMQ_PUB\fR is used by a \fIpublisher\fR to distribute data\&. Messages sent are distributed in a fan out fashion to all connected peers\&. The \fBzmq_recv\fR(3) function is not implemented for this socket type\&.
368
+ .sp
369
+ When a \fIZMQ_PUB\fR socket enters an exceptional state due to having reached the high water mark for a \fIsubscriber\fR, then any messages that would be sent to the \fIsubscriber\fR in question shall instead be dropped until the exceptional state ends\&. The \fIzmq_send()\fR function shall never block for this socket type\&.
370
+ .sp
371
+ .it 1 an-trap
372
+ .nr an-no-space-flag 1
373
+ .nr an-break-flag 1
374
+ .br
375
+ .B Table\ \&5.\ \&Summary of ZMQ_PUB characteristics
376
+ .TS
377
+ tab(:);
378
+ lt lt
379
+ lt lt
380
+ lt lt
381
+ lt lt
382
+ lt lt
383
+ lt lt.
384
+ T{
385
+ .sp
386
+ Compatible peer sockets
387
+ T}:T{
388
+ .sp
389
+ \fIZMQ_SUB\fR
390
+ T}
391
+ T{
392
+ .sp
393
+ Direction
394
+ T}:T{
395
+ .sp
396
+ Unidirectional
397
+ T}
398
+ T{
399
+ .sp
400
+ Send/receive pattern
401
+ T}:T{
402
+ .sp
403
+ Send only
404
+ T}
405
+ T{
406
+ .sp
407
+ Incoming routing strategy
408
+ T}:T{
409
+ .sp
410
+ N/A
411
+ T}
412
+ T{
413
+ .sp
414
+ Outgoing routing strategy
415
+ T}:T{
416
+ .sp
417
+ Fan out
418
+ T}
419
+ T{
420
+ .sp
421
+ ZMQ_HWM option action
422
+ T}:T{
423
+ .sp
424
+ Drop
425
+ T}
426
+ .TE
427
+ .sp 1
428
+ .RE
429
+ .sp
430
+ .it 1 an-trap
431
+ .nr an-no-space-flag 1
432
+ .nr an-break-flag 1
433
+ .br
434
+ .ps +1
435
+ \fBZMQ_SUB\fR
436
+ .RS 4
437
+ .sp
438
+ A socket of type \fIZMQ_SUB\fR is used by a \fIsubscriber\fR to subscribe to data distributed by a \fIpublisher\fR\&. Initially a \fIZMQ_SUB\fR socket is not subscribed to any messages, use the \fIZMQ_SUBSCRIBE\fR option of \fBzmq_setsockopt\fR(3) to specify which messages to subscribe to\&. The \fIzmq_send()\fR function is not implemented for this socket type\&.
439
+ .sp
440
+ .it 1 an-trap
441
+ .nr an-no-space-flag 1
442
+ .nr an-break-flag 1
443
+ .br
444
+ .B Table\ \&6.\ \&Summary of ZMQ_SUB characteristics
445
+ .TS
446
+ tab(:);
447
+ lt lt
448
+ lt lt
449
+ lt lt
450
+ lt lt
451
+ lt lt
452
+ lt lt.
453
+ T{
454
+ .sp
455
+ Compatible peer sockets
456
+ T}:T{
457
+ .sp
458
+ \fIZMQ_PUB\fR
459
+ T}
460
+ T{
461
+ .sp
462
+ Direction
463
+ T}:T{
464
+ .sp
465
+ Unidirectional
466
+ T}
467
+ T{
468
+ .sp
469
+ Send/receive pattern
470
+ T}:T{
471
+ .sp
472
+ Receive only
473
+ T}
474
+ T{
475
+ .sp
476
+ Incoming routing strategy
477
+ T}:T{
478
+ .sp
479
+ Fair\-queued
480
+ T}
481
+ T{
482
+ .sp
483
+ Outgoing routing strategy
484
+ T}:T{
485
+ .sp
486
+ N/A
487
+ T}
488
+ T{
489
+ .sp
490
+ ZMQ_HWM option action
491
+ T}:T{
492
+ .sp
493
+ Drop
494
+ T}
495
+ .TE
496
+ .sp 1
497
+ .RE
498
+ .SS "Pipeline pattern"
499
+ .sp
500
+ The pipeline pattern is used for distributing data to \fInodes\fR arranged in a pipeline\&. Data always flows down the pipeline, and each stage of the pipeline is connected to at least one \fInode\fR\&. When a pipeline stage is connected to multiple \fInodes\fR data is load\-balanced among all connected \fInodes\fR\&.
501
+ .sp
502
+ .it 1 an-trap
503
+ .nr an-no-space-flag 1
504
+ .nr an-break-flag 1
505
+ .br
506
+ .ps +1
507
+ \fBZMQ_PUSH\fR
508
+ .RS 4
509
+ .sp
510
+ A socket of type \fIZMQ_PUSH\fR is used by a pipeline \fInode\fR to send messages to downstream pipeline \fInodes\fR\&. Messages are load\-balanced to all connected downstream \fInodes\fR\&. The \fIzmq_recv()\fR function is not implemented for this socket type\&.
511
+ .sp
512
+ When a \fIZMQ_PUSH\fR socket enters an exceptional state due to having reached the high water mark for all downstream \fInodes\fR, or if there are no downstream \fInodes\fR at all, then any \fBzmq_send\fR(3) operations on the socket shall block until the exceptional state ends or at least one downstream \fInode\fR becomes available for sending; messages are not discarded\&.
513
+ .sp
514
+ Deprecated alias: \fIZMQ_DOWNSTREAM\fR\&.
515
+ .sp
516
+ .it 1 an-trap
517
+ .nr an-no-space-flag 1
518
+ .nr an-break-flag 1
519
+ .br
520
+ .B Table\ \&7.\ \&Summary of ZMQ_PUSH characteristics
521
+ .TS
522
+ tab(:);
523
+ lt lt
524
+ lt lt
525
+ lt lt
526
+ lt lt
527
+ lt lt
528
+ lt lt.
529
+ T{
530
+ .sp
531
+ Compatible peer sockets
532
+ T}:T{
533
+ .sp
534
+ \fIZMQ_PULL\fR
535
+ T}
536
+ T{
537
+ .sp
538
+ Direction
539
+ T}:T{
540
+ .sp
541
+ Unidirectional
542
+ T}
543
+ T{
544
+ .sp
545
+ Send/receive pattern
546
+ T}:T{
547
+ .sp
548
+ Send only
549
+ T}
550
+ T{
551
+ .sp
552
+ Incoming routing strategy
553
+ T}:T{
554
+ .sp
555
+ N/A
556
+ T}
557
+ T{
558
+ .sp
559
+ Outgoing routing strategy
560
+ T}:T{
561
+ .sp
562
+ Load\-balanced
563
+ T}
564
+ T{
565
+ .sp
566
+ ZMQ_HWM option action
567
+ T}:T{
568
+ .sp
569
+ Block
570
+ T}
571
+ .TE
572
+ .sp 1
573
+ .RE
574
+ .sp
575
+ .it 1 an-trap
576
+ .nr an-no-space-flag 1
577
+ .nr an-break-flag 1
578
+ .br
579
+ .ps +1
580
+ \fBZMQ_PULL\fR
581
+ .RS 4
582
+ .sp
583
+ A socket of type \fIZMQ_PULL\fR is used by a pipeline \fInode\fR to receive messages from upstream pipeline \fInodes\fR\&. Messages are fair\-queued from among all connected upstream \fInodes\fR\&. The \fIzmq_send()\fR function is not implemented for this socket type\&.
584
+ .sp
585
+ Deprecated alias: \fIZMQ_UPSTREAM\fR\&.
586
+ .sp
587
+ .it 1 an-trap
588
+ .nr an-no-space-flag 1
589
+ .nr an-break-flag 1
590
+ .br
591
+ .B Table\ \&8.\ \&Summary of ZMQ_PULL characteristics
592
+ .TS
593
+ tab(:);
594
+ lt lt
595
+ lt lt
596
+ lt lt
597
+ lt lt
598
+ lt lt
599
+ lt lt.
600
+ T{
601
+ .sp
602
+ Compatible peer sockets
603
+ T}:T{
604
+ .sp
605
+ \fIZMQ_PUSH\fR
606
+ T}
607
+ T{
608
+ .sp
609
+ Direction
610
+ T}:T{
611
+ .sp
612
+ Unidirectional
613
+ T}
614
+ T{
615
+ .sp
616
+ Send/receive pattern
617
+ T}:T{
618
+ .sp
619
+ Receive only
620
+ T}
621
+ T{
622
+ .sp
623
+ Incoming routing strategy
624
+ T}:T{
625
+ .sp
626
+ Fair\-queued
627
+ T}
628
+ T{
629
+ .sp
630
+ Outgoing routing strategy
631
+ T}:T{
632
+ .sp
633
+ N/A
634
+ T}
635
+ T{
636
+ .sp
637
+ ZMQ_HWM option action
638
+ T}:T{
639
+ .sp
640
+ N/A
641
+ T}
642
+ .TE
643
+ .sp 1
644
+ .RE
645
+ .SS "Exclusive pair pattern"
646
+ .sp
647
+ The exclusive pair pattern is used to connect a peer to precisely one other peer\&. This pattern is used for inter\-thread communication across the inproc transport\&.
648
+ .sp
649
+ .it 1 an-trap
650
+ .nr an-no-space-flag 1
651
+ .nr an-break-flag 1
652
+ .br
653
+ .ps +1
654
+ \fBZMQ_PAIR\fR
655
+ .RS 4
656
+ .sp
657
+ A socket of type \fIZMQ_PAIR\fR can only be connected to a single peer at any one time\&. No message routing or filtering is performed on messages sent over a \fIZMQ_PAIR\fR socket\&.
658
+ .sp
659
+ When a \fIZMQ_PAIR\fR socket enters an exceptional state due to having reached the high water mark for the connected peer, or if no peer is connected, then any \fBzmq_send\fR(3) operations on the socket shall block until the peer becomes available for sending; messages are not discarded\&.
660
+ .if n \{\
661
+ .sp
662
+ .\}
663
+ .RS 4
664
+ .it 1 an-trap
665
+ .nr an-no-space-flag 1
666
+ .nr an-break-flag 1
667
+ .br
668
+ .ps +1
669
+ \fBNote\fR
670
+ .ps -1
671
+ .br
672
+ .sp
673
+ \fIZMQ_PAIR\fR sockets are designed for inter\-thread communication across the \fBzmq_inproc\fR(7) transport and do not implement functionality such as auto\-reconnection\&. \fIZMQ_PAIR\fR sockets are considered experimental and may have other missing or broken aspects\&.
674
+ .sp .5v
675
+ .RE
676
+ .sp
677
+ .it 1 an-trap
678
+ .nr an-no-space-flag 1
679
+ .nr an-break-flag 1
680
+ .br
681
+ .B Table\ \&9.\ \&Summary of ZMQ_PAIR characteristics
682
+ .TS
683
+ tab(:);
684
+ lt lt
685
+ lt lt
686
+ lt lt
687
+ lt lt
688
+ lt lt
689
+ lt lt.
690
+ T{
691
+ .sp
692
+ Compatible peer sockets
693
+ T}:T{
694
+ .sp
695
+ \fIZMQ_PAIR\fR
696
+ T}
697
+ T{
698
+ .sp
699
+ Direction
700
+ T}:T{
701
+ .sp
702
+ Bidirectional
703
+ T}
704
+ T{
705
+ .sp
706
+ Send/receive pattern
707
+ T}:T{
708
+ .sp
709
+ Unrestricted
710
+ T}
711
+ T{
712
+ .sp
713
+ Incoming routing strategy
714
+ T}:T{
715
+ .sp
716
+ N/A
717
+ T}
718
+ T{
719
+ .sp
720
+ Outgoing routing strategy
721
+ T}:T{
722
+ .sp
723
+ N/A
724
+ T}
725
+ T{
726
+ .sp
727
+ ZMQ_HWM option action
728
+ T}:T{
729
+ .sp
730
+ Block
731
+ T}
732
+ .TE
733
+ .sp 1
734
+ .RE
735
+ .SH "RETURN VALUE"
736
+ .sp
737
+ The \fIzmq_socket()\fR function shall return an opaque handle to the newly created socket if successful\&. Otherwise, it shall return NULL and set \fIerrno\fR to one of the values defined below\&.
738
+ .SH "ERRORS"
739
+ .PP
740
+ \fBEINVAL\fR
741
+ .RS 4
742
+ The requested socket
743
+ \fItype\fR
744
+ is invalid\&.
745
+ .RE
746
+ .PP
747
+ \fBEFAULT\fR
748
+ .RS 4
749
+ The provided
750
+ \fIcontext\fR
751
+ is invalid\&.
752
+ .RE
753
+ .PP
754
+ \fBEMFILE\fR
755
+ .RS 4
756
+ The limit on the total number of open 0MQ sockets has been reached\&.
757
+ .RE
758
+ .PP
759
+ \fBETERM\fR
760
+ .RS 4
761
+ The context specified was terminated\&.
762
+ .RE
763
+ .SH "SEE ALSO"
764
+ .sp
765
+ \fBzmq_init\fR(3) \fBzmq_setsockopt\fR(3) \fBzmq_bind\fR(3) \fBzmq_connect\fR(3) \fBzmq_send\fR(3) \fBzmq_recv\fR(3) \fBzmq_inproc\fR(7) \fBzmq\fR(7)
766
+ .SH "AUTHORS"
767
+ .sp
768
+ This 0MQ manual page was written by Martin Sustrik <\m[blue]\fBsustrik@250bpm\&.com\fR\m[]\&\s-2\u[1]\d\s+2> and Martin Lucina <\m[blue]\fBmato@kotelna\&.sk\fR\m[]\&\s-2\u[2]\d\s+2>\&.
769
+ .SH "NOTES"
770
+ .IP " 1." 4
771
+ sustrik@250bpm.com
772
+ .RS 4
773
+ \%mailto:sustrik@250bpm.com
774
+ .RE
775
+ .IP " 2." 4
776
+ mato@kotelna.sk
777
+ .RS 4
778
+ \%mailto:mato@kotelna.sk
779
+ .RE