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,1603 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta name="generator" content="AsciiDoc 8.5.2" />
7
+ <title>zmq_setsockopt(3)</title>
8
+ <style type="text/css">
9
+ /* Debug borders */
10
+ p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
11
+ /*
12
+ border: 1px solid red;
13
+ */
14
+ }
15
+
16
+ body {
17
+ margin: 1em 5% 1em 5%;
18
+ }
19
+
20
+ a {
21
+ color: blue;
22
+ text-decoration: underline;
23
+ }
24
+ a:visited {
25
+ color: fuchsia;
26
+ }
27
+
28
+ em {
29
+ font-style: italic;
30
+ color: navy;
31
+ }
32
+
33
+ strong {
34
+ font-weight: bold;
35
+ color: #083194;
36
+ }
37
+
38
+ tt {
39
+ color: navy;
40
+ }
41
+
42
+ h1, h2, h3, h4, h5, h6 {
43
+ color: #527bbd;
44
+ font-family: sans-serif;
45
+ margin-top: 1.2em;
46
+ margin-bottom: 0.5em;
47
+ line-height: 1.3;
48
+ }
49
+
50
+ h1, h2, h3 {
51
+ border-bottom: 2px solid silver;
52
+ }
53
+ h2 {
54
+ padding-top: 0.5em;
55
+ }
56
+ h3 {
57
+ float: left;
58
+ }
59
+ h3 + * {
60
+ clear: left;
61
+ }
62
+
63
+ div.sectionbody {
64
+ font-family: serif;
65
+ margin-left: 0;
66
+ }
67
+
68
+ hr {
69
+ border: 1px solid silver;
70
+ }
71
+
72
+ p {
73
+ margin-top: 0.5em;
74
+ margin-bottom: 0.5em;
75
+ }
76
+
77
+ ul, ol, li > p {
78
+ margin-top: 0;
79
+ }
80
+
81
+ pre {
82
+ padding: 0;
83
+ margin: 0;
84
+ }
85
+
86
+ span#author {
87
+ color: #527bbd;
88
+ font-family: sans-serif;
89
+ font-weight: bold;
90
+ font-size: 1.1em;
91
+ }
92
+ span#email {
93
+ }
94
+ span#revnumber, span#revdate, span#revremark {
95
+ font-family: sans-serif;
96
+ }
97
+
98
+ div#footer {
99
+ font-family: sans-serif;
100
+ font-size: small;
101
+ border-top: 2px solid silver;
102
+ padding-top: 0.5em;
103
+ margin-top: 4.0em;
104
+ }
105
+ div#footer-text {
106
+ float: left;
107
+ padding-bottom: 0.5em;
108
+ }
109
+ div#footer-badges {
110
+ float: right;
111
+ padding-bottom: 0.5em;
112
+ }
113
+
114
+ div#preamble {
115
+ margin-top: 1.5em;
116
+ margin-bottom: 1.5em;
117
+ }
118
+ div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
119
+ div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
120
+ div.admonitionblock {
121
+ margin-top: 1.0em;
122
+ margin-bottom: 1.5em;
123
+ }
124
+ div.admonitionblock {
125
+ margin-top: 2.0em;
126
+ margin-bottom: 2.0em;
127
+ margin-right: 10%;
128
+ color: #606060;
129
+ }
130
+
131
+ div.content { /* Block element content. */
132
+ padding: 0;
133
+ }
134
+
135
+ /* Block element titles. */
136
+ div.title, caption.title {
137
+ color: #527bbd;
138
+ font-family: sans-serif;
139
+ font-weight: bold;
140
+ text-align: left;
141
+ margin-top: 1.0em;
142
+ margin-bottom: 0.5em;
143
+ }
144
+ div.title + * {
145
+ margin-top: 0;
146
+ }
147
+
148
+ td div.title:first-child {
149
+ margin-top: 0.0em;
150
+ }
151
+ div.content div.title:first-child {
152
+ margin-top: 0.0em;
153
+ }
154
+ div.content + div.title {
155
+ margin-top: 0.0em;
156
+ }
157
+
158
+ div.sidebarblock > div.content {
159
+ background: #ffffee;
160
+ border: 1px solid silver;
161
+ padding: 0.5em;
162
+ }
163
+
164
+ div.listingblock > div.content {
165
+ border: 1px solid silver;
166
+ background: #f4f4f4;
167
+ padding: 0.5em;
168
+ }
169
+
170
+ div.quoteblock, div.verseblock {
171
+ padding-left: 1.0em;
172
+ margin-left: 1.0em;
173
+ margin-right: 10%;
174
+ border-left: 5px solid #dddddd;
175
+ color: #777777;
176
+ }
177
+
178
+ div.quoteblock > div.attribution {
179
+ padding-top: 0.5em;
180
+ text-align: right;
181
+ }
182
+
183
+ div.verseblock > div.content {
184
+ white-space: pre;
185
+ }
186
+ div.verseblock > div.attribution {
187
+ padding-top: 0.75em;
188
+ text-align: left;
189
+ }
190
+ /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
191
+ div.verseblock + div.attribution {
192
+ text-align: left;
193
+ }
194
+
195
+ div.admonitionblock .icon {
196
+ vertical-align: top;
197
+ font-size: 1.1em;
198
+ font-weight: bold;
199
+ text-decoration: underline;
200
+ color: #527bbd;
201
+ padding-right: 0.5em;
202
+ }
203
+ div.admonitionblock td.content {
204
+ padding-left: 0.5em;
205
+ border-left: 3px solid #dddddd;
206
+ }
207
+
208
+ div.exampleblock > div.content {
209
+ border-left: 3px solid #dddddd;
210
+ padding-left: 0.5em;
211
+ }
212
+
213
+ div.imageblock div.content { padding-left: 0; }
214
+ span.image img { border-style: none; }
215
+ a.image:visited { color: white; }
216
+
217
+ dl {
218
+ margin-top: 0.8em;
219
+ margin-bottom: 0.8em;
220
+ }
221
+ dt {
222
+ margin-top: 0.5em;
223
+ margin-bottom: 0;
224
+ font-style: normal;
225
+ color: navy;
226
+ }
227
+ dd > *:first-child {
228
+ margin-top: 0.1em;
229
+ }
230
+
231
+ ul, ol {
232
+ list-style-position: outside;
233
+ }
234
+ ol.arabic {
235
+ list-style-type: decimal;
236
+ }
237
+ ol.loweralpha {
238
+ list-style-type: lower-alpha;
239
+ }
240
+ ol.upperalpha {
241
+ list-style-type: upper-alpha;
242
+ }
243
+ ol.lowerroman {
244
+ list-style-type: lower-roman;
245
+ }
246
+ ol.upperroman {
247
+ list-style-type: upper-roman;
248
+ }
249
+
250
+ div.compact ul, div.compact ol,
251
+ div.compact p, div.compact p,
252
+ div.compact div, div.compact div {
253
+ margin-top: 0.1em;
254
+ margin-bottom: 0.1em;
255
+ }
256
+
257
+ div.tableblock > table {
258
+ border: 3px solid #527bbd;
259
+ }
260
+ thead, p.table.header {
261
+ font-family: sans-serif;
262
+ font-weight: bold;
263
+ }
264
+ tfoot {
265
+ font-weight: bold;
266
+ }
267
+ td > div.verse {
268
+ white-space: pre;
269
+ }
270
+ p.table {
271
+ margin-top: 0;
272
+ }
273
+ /* Because the table frame attribute is overriden by CSS in most browsers. */
274
+ div.tableblock > table[frame="void"] {
275
+ border-style: none;
276
+ }
277
+ div.tableblock > table[frame="hsides"] {
278
+ border-left-style: none;
279
+ border-right-style: none;
280
+ }
281
+ div.tableblock > table[frame="vsides"] {
282
+ border-top-style: none;
283
+ border-bottom-style: none;
284
+ }
285
+
286
+
287
+ div.hdlist {
288
+ margin-top: 0.8em;
289
+ margin-bottom: 0.8em;
290
+ }
291
+ div.hdlist tr {
292
+ padding-bottom: 15px;
293
+ }
294
+ dt.hdlist1.strong, td.hdlist1.strong {
295
+ font-weight: bold;
296
+ }
297
+ td.hdlist1 {
298
+ vertical-align: top;
299
+ font-style: normal;
300
+ padding-right: 0.8em;
301
+ color: navy;
302
+ }
303
+ td.hdlist2 {
304
+ vertical-align: top;
305
+ }
306
+ div.hdlist.compact tr {
307
+ margin: 0;
308
+ padding-bottom: 0;
309
+ }
310
+
311
+ .comment {
312
+ background: yellow;
313
+ }
314
+
315
+ .footnote, .footnoteref {
316
+ font-size: 0.8em;
317
+ }
318
+
319
+ span.footnote, span.footnoteref {
320
+ vertical-align: super;
321
+ }
322
+
323
+ #footnotes {
324
+ margin: 20px 0 20px 0;
325
+ padding: 7px 0 0 0;
326
+ }
327
+
328
+ #footnotes div.footnote {
329
+ margin: 0 0 5px 0;
330
+ }
331
+
332
+ #footnotes hr {
333
+ border: none;
334
+ border-top: 1px solid silver;
335
+ height: 1px;
336
+ text-align: left;
337
+ margin-left: 0;
338
+ width: 20%;
339
+ min-width: 100px;
340
+ }
341
+
342
+
343
+ @media print {
344
+ div#footer-badges { display: none; }
345
+ }
346
+
347
+ div#toc {
348
+ margin-bottom: 2.5em;
349
+ }
350
+
351
+ div#toctitle {
352
+ color: #527bbd;
353
+ font-family: sans-serif;
354
+ font-size: 1.1em;
355
+ font-weight: bold;
356
+ margin-top: 1.0em;
357
+ margin-bottom: 0.1em;
358
+ }
359
+
360
+ div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
361
+ margin-top: 0;
362
+ margin-bottom: 0;
363
+ }
364
+ div.toclevel2 {
365
+ margin-left: 2em;
366
+ font-size: 0.9em;
367
+ }
368
+ div.toclevel3 {
369
+ margin-left: 4em;
370
+ font-size: 0.9em;
371
+ }
372
+ div.toclevel4 {
373
+ margin-left: 6em;
374
+ font-size: 0.9em;
375
+ }
376
+ /* Overrides for manpage documents */
377
+ h1 {
378
+ padding-top: 0.5em;
379
+ padding-bottom: 0.5em;
380
+ border-top: 2px solid silver;
381
+ border-bottom: 2px solid silver;
382
+ }
383
+ h2 {
384
+ border-style: none;
385
+ }
386
+ div.sectionbody {
387
+ margin-left: 5%;
388
+ }
389
+
390
+ @media print {
391
+ div#toc { display: none; }
392
+ }
393
+
394
+ /* Workarounds for IE6's broken and incomplete CSS2. */
395
+
396
+ div.sidebar-content {
397
+ background: #ffffee;
398
+ border: 1px solid silver;
399
+ padding: 0.5em;
400
+ }
401
+ div.sidebar-title, div.image-title {
402
+ color: #527bbd;
403
+ font-family: sans-serif;
404
+ font-weight: bold;
405
+ margin-top: 0.0em;
406
+ margin-bottom: 0.5em;
407
+ }
408
+
409
+ div.listingblock div.content {
410
+ border: 1px solid silver;
411
+ background: #f4f4f4;
412
+ padding: 0.5em;
413
+ }
414
+
415
+ div.quoteblock-attribution {
416
+ padding-top: 0.5em;
417
+ text-align: right;
418
+ }
419
+
420
+ div.verseblock-content {
421
+ white-space: pre;
422
+ }
423
+ div.verseblock-attribution {
424
+ padding-top: 0.75em;
425
+ text-align: left;
426
+ }
427
+
428
+ div.exampleblock-content {
429
+ border-left: 3px solid #dddddd;
430
+ padding-left: 0.5em;
431
+ }
432
+
433
+ /* IE6 sets dynamically generated links as visited. */
434
+ div#toc a:visited { color: blue; }
435
+ </style>
436
+ <script type="text/javascript">
437
+ /*<![CDATA[*/
438
+ window.onload = function(){asciidoc.footnotes();}
439
+ var asciidoc = { // Namespace.
440
+
441
+ /////////////////////////////////////////////////////////////////////
442
+ // Table Of Contents generator
443
+ /////////////////////////////////////////////////////////////////////
444
+
445
+ /* Author: Mihai Bazon, September 2002
446
+ * http://students.infoiasi.ro/~mishoo
447
+ *
448
+ * Table Of Content generator
449
+ * Version: 0.4
450
+ *
451
+ * Feel free to use this script under the terms of the GNU General Public
452
+ * License, as long as you do not remove or alter this notice.
453
+ */
454
+
455
+ /* modified by Troy D. Hanson, September 2006. License: GPL */
456
+ /* modified by Stuart Rackham, 2006, 2009. License: GPL */
457
+
458
+ // toclevels = 1..4.
459
+ toc: function (toclevels) {
460
+
461
+ function getText(el) {
462
+ var text = "";
463
+ for (var i = el.firstChild; i != null; i = i.nextSibling) {
464
+ if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
465
+ text += i.data;
466
+ else if (i.firstChild != null)
467
+ text += getText(i);
468
+ }
469
+ return text;
470
+ }
471
+
472
+ function TocEntry(el, text, toclevel) {
473
+ this.element = el;
474
+ this.text = text;
475
+ this.toclevel = toclevel;
476
+ }
477
+
478
+ function tocEntries(el, toclevels) {
479
+ var result = new Array;
480
+ var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
481
+ // Function that scans the DOM tree for header elements (the DOM2
482
+ // nodeIterator API would be a better technique but not supported by all
483
+ // browsers).
484
+ var iterate = function (el) {
485
+ for (var i = el.firstChild; i != null; i = i.nextSibling) {
486
+ if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
487
+ var mo = re.exec(i.tagName);
488
+ if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
489
+ result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
490
+ }
491
+ iterate(i);
492
+ }
493
+ }
494
+ }
495
+ iterate(el);
496
+ return result;
497
+ }
498
+
499
+ var toc = document.getElementById("toc");
500
+ var entries = tocEntries(document.getElementById("content"), toclevels);
501
+ for (var i = 0; i < entries.length; ++i) {
502
+ var entry = entries[i];
503
+ if (entry.element.id == "")
504
+ entry.element.id = "_toc_" + i;
505
+ var a = document.createElement("a");
506
+ a.href = "#" + entry.element.id;
507
+ a.appendChild(document.createTextNode(entry.text));
508
+ var div = document.createElement("div");
509
+ div.appendChild(a);
510
+ div.className = "toclevel" + entry.toclevel;
511
+ toc.appendChild(div);
512
+ }
513
+ if (entries.length == 0)
514
+ toc.parentNode.removeChild(toc);
515
+ },
516
+
517
+
518
+ /////////////////////////////////////////////////////////////////////
519
+ // Footnotes generator
520
+ /////////////////////////////////////////////////////////////////////
521
+
522
+ /* Based on footnote generation code from:
523
+ * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
524
+ */
525
+
526
+ footnotes: function () {
527
+ var cont = document.getElementById("content");
528
+ var noteholder = document.getElementById("footnotes");
529
+ var spans = cont.getElementsByTagName("span");
530
+ var refs = {};
531
+ var n = 0;
532
+ for (i=0; i<spans.length; i++) {
533
+ if (spans[i].className == "footnote") {
534
+ n++;
535
+ // Use [\s\S] in place of . so multi-line matches work.
536
+ // Because JavaScript has no s (dotall) regex flag.
537
+ note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
538
+ noteholder.innerHTML +=
539
+ "<div class='footnote' id='_footnote_" + n + "'>" +
540
+ "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
541
+ n + "</a>. " + note + "</div>";
542
+ spans[i].innerHTML =
543
+ "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
544
+ "' title='View footnote' class='footnote'>" + n + "</a>]";
545
+ var id =spans[i].getAttribute("id");
546
+ if (id != null) refs["#"+id] = n;
547
+ }
548
+ }
549
+ if (n == 0)
550
+ noteholder.parentNode.removeChild(noteholder);
551
+ else {
552
+ // Process footnoterefs.
553
+ for (i=0; i<spans.length; i++) {
554
+ if (spans[i].className == "footnoteref") {
555
+ var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
556
+ href = href.match(/#.*/)[0]; // Because IE return full URL.
557
+ n = refs[href];
558
+ spans[i].innerHTML =
559
+ "[<a href='#_footnote_" + n +
560
+ "' title='View footnote' class='footnote'>" + n + "</a>]";
561
+ }
562
+ }
563
+ }
564
+ }
565
+
566
+ }
567
+ /*]]>*/
568
+ </script>
569
+ </head>
570
+ <body>
571
+ <div id="header">
572
+ <h1>
573
+ zmq_setsockopt(3) Manual Page
574
+ </h1>
575
+ <h2>NAME</h2>
576
+ <div class="sectionbody">
577
+ <p>zmq_setsockopt -
578
+ set 0MQ socket options
579
+ </p>
580
+ </div>
581
+ </div>
582
+ <div id="content">
583
+ <h2 id="_synopsis">SYNOPSIS</h2>
584
+ <div class="sectionbody">
585
+ <div class="paragraph"><p><strong>int zmq_setsockopt (void <em>*socket</em>, int <em>option_name</em>, const void <em>*option_value</em>, size_t <em>option_len</em>);</strong></p></div>
586
+ <div class="paragraph"><p>Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE and
587
+ ZMQ_LINGER, only take effect for subsequent socket bind/connects.</p></div>
588
+ </div>
589
+ <h2 id="_description">DESCRIPTION</h2>
590
+ <div class="sectionbody">
591
+ <div class="paragraph"><p>The <em>zmq_setsockopt()</em> function shall set the option specified by the
592
+ <em>option_name</em> argument to the value pointed to by the <em>option_value</em> argument
593
+ for the ØMQ socket pointed to by the <em>socket</em> argument. The <em>option_len</em>
594
+ argument is the size of the option value in bytes.</p></div>
595
+ <div class="paragraph"><p>The following socket options can be set with the <em>zmq_setsockopt()</em> function:</p></div>
596
+ <h3 id="_zmq_hwm_set_high_water_mark">ZMQ_HWM: Set high water mark</h3><div style="clear:left"></div>
597
+ <div class="paragraph"><p>The <em>ZMQ_HWM</em> option shall set the high water mark for the specified <em>socket</em>.
598
+ The high water mark is a hard limit on the maximum number of outstanding
599
+ messages ØMQ shall queue in memory for any single peer that the specified
600
+ <em>socket</em> is communicating with.</p></div>
601
+ <div class="paragraph"><p>If this limit has been reached the socket shall enter an exceptional state and
602
+ depending on the socket type, ØMQ shall take appropriate action such as
603
+ blocking or dropping sent messages. Refer to the individual socket descriptions
604
+ in <a href="zmq_socket.html">zmq_socket(3)</a> for details on the exact action taken for each socket
605
+ type.</p></div>
606
+ <div class="paragraph"><p>The default <em>ZMQ_HWM</em> value of zero means "no limit".</p></div>
607
+ <div class="hdlist"><table>
608
+ <tr>
609
+ <td class="hdlist1">
610
+ Option value type
611
+ <br />
612
+ </td>
613
+ <td class="hdlist2">
614
+ <p style="margin-top: 0;">
615
+ uint64_t
616
+ </p>
617
+ </td>
618
+ </tr>
619
+ <tr>
620
+ <td class="hdlist1">
621
+ Option value unit
622
+ <br />
623
+ </td>
624
+ <td class="hdlist2">
625
+ <p style="margin-top: 0;">
626
+ messages
627
+ </p>
628
+ </td>
629
+ </tr>
630
+ <tr>
631
+ <td class="hdlist1">
632
+ Default value
633
+ <br />
634
+ </td>
635
+ <td class="hdlist2">
636
+ <p style="margin-top: 0;">
637
+ 0
638
+ </p>
639
+ </td>
640
+ </tr>
641
+ <tr>
642
+ <td class="hdlist1">
643
+ Applicable socket types
644
+ <br />
645
+ </td>
646
+ <td class="hdlist2">
647
+ <p style="margin-top: 0;">
648
+ all
649
+ </p>
650
+ </td>
651
+ </tr>
652
+ </table></div>
653
+ <h3 id="_zmq_swap_set_disk_offload_size">ZMQ_SWAP: Set disk offload size</h3><div style="clear:left"></div>
654
+ <div class="paragraph"><p>The <em>ZMQ_SWAP</em> option shall set the disk offload (swap) size for the specified
655
+ <em>socket</em>. A socket which has <em>ZMQ_SWAP</em> set to a non-zero value may exceed it&#8217;s
656
+ high water mark; in this case outstanding messages shall be offloaded to
657
+ storage on disk rather than held in memory.</p></div>
658
+ <div class="paragraph"><p>The value of <em>ZMQ_SWAP</em> defines the maximum size of the swap space in bytes.</p></div>
659
+ <div class="hdlist"><table>
660
+ <tr>
661
+ <td class="hdlist1">
662
+ Option value type
663
+ <br />
664
+ </td>
665
+ <td class="hdlist2">
666
+ <p style="margin-top: 0;">
667
+ int64_t
668
+ </p>
669
+ </td>
670
+ </tr>
671
+ <tr>
672
+ <td class="hdlist1">
673
+ Option value unit
674
+ <br />
675
+ </td>
676
+ <td class="hdlist2">
677
+ <p style="margin-top: 0;">
678
+ bytes
679
+ </p>
680
+ </td>
681
+ </tr>
682
+ <tr>
683
+ <td class="hdlist1">
684
+ Default value
685
+ <br />
686
+ </td>
687
+ <td class="hdlist2">
688
+ <p style="margin-top: 0;">
689
+ 0
690
+ </p>
691
+ </td>
692
+ </tr>
693
+ <tr>
694
+ <td class="hdlist1">
695
+ Applicable socket types
696
+ <br />
697
+ </td>
698
+ <td class="hdlist2">
699
+ <p style="margin-top: 0;">
700
+ all
701
+ </p>
702
+ </td>
703
+ </tr>
704
+ </table></div>
705
+ <h3 id="_zmq_affinity_set_i_o_thread_affinity">ZMQ_AFFINITY: Set I/O thread affinity</h3><div style="clear:left"></div>
706
+ <div class="paragraph"><p>The <em>ZMQ_AFFINITY</em> option shall set the I/O thread affinity for newly created
707
+ connections on the specified <em>socket</em>.</p></div>
708
+ <div class="paragraph"><p>Affinity determines which threads from the ØMQ I/O thread pool associated with
709
+ the socket&#8217;s <em>context</em> shall handle newly created connections. A value of zero
710
+ specifies no affinity, meaning that work shall be distributed fairly among all
711
+ ØMQ I/O threads in the thread pool. For non-zero values, the lowest bit
712
+ corresponds to thread 1, second lowest bit to thread 2 and so on. For example,
713
+ a value of 3 specifies that subsequent connections on <em>socket</em> shall be handled
714
+ exclusively by I/O threads 1 and 2.</p></div>
715
+ <div class="paragraph"><p>See also <a href="zmq_init.html">zmq_init(3)</a> for details on allocating the number of I/O
716
+ threads for a specific <em>context</em>.</p></div>
717
+ <div class="hdlist"><table>
718
+ <tr>
719
+ <td class="hdlist1">
720
+ Option value type
721
+ <br />
722
+ </td>
723
+ <td class="hdlist2">
724
+ <p style="margin-top: 0;">
725
+ uint64_t
726
+ </p>
727
+ </td>
728
+ </tr>
729
+ <tr>
730
+ <td class="hdlist1">
731
+ Option value unit
732
+ <br />
733
+ </td>
734
+ <td class="hdlist2">
735
+ <p style="margin-top: 0;">
736
+ N/A (bitmap)
737
+ </p>
738
+ </td>
739
+ </tr>
740
+ <tr>
741
+ <td class="hdlist1">
742
+ Default value
743
+ <br />
744
+ </td>
745
+ <td class="hdlist2">
746
+ <p style="margin-top: 0;">
747
+ 0
748
+ </p>
749
+ </td>
750
+ </tr>
751
+ <tr>
752
+ <td class="hdlist1">
753
+ Applicable socket types
754
+ <br />
755
+ </td>
756
+ <td class="hdlist2">
757
+ <p style="margin-top: 0;">
758
+ N/A
759
+ </p>
760
+ </td>
761
+ </tr>
762
+ </table></div>
763
+ <h3 id="_zmq_identity_set_socket_identity">ZMQ_IDENTITY: Set socket identity</h3><div style="clear:left"></div>
764
+ <div class="paragraph"><p>The <em>ZMQ_IDENTITY</em> option shall set the identity of the specified <em>socket</em>.
765
+ Socket identity determines if existing ØMQ infrastructure (<em>message queues</em>,
766
+ <em>forwarding devices</em>) shall be identified with a specific application and
767
+ persist across multiple runs of the application.</p></div>
768
+ <div class="paragraph"><p>If the socket has no identity, each run of an application is completely
769
+ separate from other runs. However, with identity set the socket shall re-use
770
+ any existing ØMQ infrastructure configured by the previous run(s). Thus the
771
+ application may receive messages that were sent in the meantime, <em>message
772
+ queue</em> limits shall be shared with previous run(s) and so on.</p></div>
773
+ <div class="paragraph"><p>Identity should be at least one byte and at most 255 bytes long. Identities
774
+ starting with binary zero are reserved for use by ØMQ infrastructure.</p></div>
775
+ <div class="hdlist"><table>
776
+ <tr>
777
+ <td class="hdlist1">
778
+ Option value type
779
+ <br />
780
+ </td>
781
+ <td class="hdlist2">
782
+ <p style="margin-top: 0;">
783
+ binary data
784
+ </p>
785
+ </td>
786
+ </tr>
787
+ <tr>
788
+ <td class="hdlist1">
789
+ Option value unit
790
+ <br />
791
+ </td>
792
+ <td class="hdlist2">
793
+ <p style="margin-top: 0;">
794
+ N/A
795
+ </p>
796
+ </td>
797
+ </tr>
798
+ <tr>
799
+ <td class="hdlist1">
800
+ Default value
801
+ <br />
802
+ </td>
803
+ <td class="hdlist2">
804
+ <p style="margin-top: 0;">
805
+ NULL
806
+ </p>
807
+ </td>
808
+ </tr>
809
+ <tr>
810
+ <td class="hdlist1">
811
+ Applicable socket types
812
+ <br />
813
+ </td>
814
+ <td class="hdlist2">
815
+ <p style="margin-top: 0;">
816
+ all
817
+ </p>
818
+ </td>
819
+ </tr>
820
+ </table></div>
821
+ <h3 id="_zmq_subscribe_establish_message_filter">ZMQ_SUBSCRIBE: Establish message filter</h3><div style="clear:left"></div>
822
+ <div class="paragraph"><p>The <em>ZMQ_SUBSCRIBE</em> option shall establish a new message filter on a <em>ZMQ_SUB</em>
823
+ socket. Newly created <em>ZMQ_SUB</em> sockets shall filter out all incoming messages,
824
+ therefore you should call this option to establish an initial message filter.</p></div>
825
+ <div class="paragraph"><p>An empty <em>option_value</em> of length zero shall subscribe to all incoming
826
+ messages. A non-empty <em>option_value</em> shall subscribe to all messages beginning
827
+ with the specified prefix. Multiple filters may be attached to a single
828
+ <em>ZMQ_SUB</em> socket, in which case a message shall be accepted if it matches at
829
+ least one filter.</p></div>
830
+ <div class="hdlist"><table>
831
+ <tr>
832
+ <td class="hdlist1">
833
+ Option value type
834
+ <br />
835
+ </td>
836
+ <td class="hdlist2">
837
+ <p style="margin-top: 0;">
838
+ binary data
839
+ </p>
840
+ </td>
841
+ </tr>
842
+ <tr>
843
+ <td class="hdlist1">
844
+ Option value unit
845
+ <br />
846
+ </td>
847
+ <td class="hdlist2">
848
+ <p style="margin-top: 0;">
849
+ N/A
850
+ </p>
851
+ </td>
852
+ </tr>
853
+ <tr>
854
+ <td class="hdlist1">
855
+ Default value
856
+ <br />
857
+ </td>
858
+ <td class="hdlist2">
859
+ <p style="margin-top: 0;">
860
+ N/A
861
+ </p>
862
+ </td>
863
+ </tr>
864
+ <tr>
865
+ <td class="hdlist1">
866
+ Applicable socket types
867
+ <br />
868
+ </td>
869
+ <td class="hdlist2">
870
+ <p style="margin-top: 0;">
871
+ ZMQ_SUB
872
+ </p>
873
+ </td>
874
+ </tr>
875
+ </table></div>
876
+ <h3 id="_zmq_unsubscribe_remove_message_filter">ZMQ_UNSUBSCRIBE: Remove message filter</h3><div style="clear:left"></div>
877
+ <div class="paragraph"><p>The <em>ZMQ_UNSUBSCRIBE</em> option shall remove an existing message filter on a
878
+ <em>ZMQ_SUB</em> socket. The filter specified must match an existing filter previously
879
+ established with the <em>ZMQ_SUBSCRIBE</em> option. If the socket has several
880
+ instances of the same filter attached the <em>ZMQ_UNSUBSCRIBE</em> option shall remove
881
+ only one instance, leaving the rest in place and functional.</p></div>
882
+ <div class="hdlist"><table>
883
+ <tr>
884
+ <td class="hdlist1">
885
+ Option value type
886
+ <br />
887
+ </td>
888
+ <td class="hdlist2">
889
+ <p style="margin-top: 0;">
890
+ binary data
891
+ </p>
892
+ </td>
893
+ </tr>
894
+ <tr>
895
+ <td class="hdlist1">
896
+ Option value unit
897
+ <br />
898
+ </td>
899
+ <td class="hdlist2">
900
+ <p style="margin-top: 0;">
901
+ N/A
902
+ </p>
903
+ </td>
904
+ </tr>
905
+ <tr>
906
+ <td class="hdlist1">
907
+ Default value
908
+ <br />
909
+ </td>
910
+ <td class="hdlist2">
911
+ <p style="margin-top: 0;">
912
+ N/A
913
+ </p>
914
+ </td>
915
+ </tr>
916
+ <tr>
917
+ <td class="hdlist1">
918
+ Applicable socket types
919
+ <br />
920
+ </td>
921
+ <td class="hdlist2">
922
+ <p style="margin-top: 0;">
923
+ ZMQ_SUB
924
+ </p>
925
+ </td>
926
+ </tr>
927
+ </table></div>
928
+ <h3 id="_zmq_rate_set_multicast_data_rate">ZMQ_RATE: Set multicast data rate</h3><div style="clear:left"></div>
929
+ <div class="paragraph"><p>The <em>ZMQ_RATE</em> option shall set the maximum send or receive data rate for
930
+ multicast transports such as <a href="zmq_pgm.html">zmq_pgm(7)</a> using the specified <em>socket</em>.</p></div>
931
+ <div class="hdlist"><table>
932
+ <tr>
933
+ <td class="hdlist1">
934
+ Option value type
935
+ <br />
936
+ </td>
937
+ <td class="hdlist2">
938
+ <p style="margin-top: 0;">
939
+ int64_t
940
+ </p>
941
+ </td>
942
+ </tr>
943
+ <tr>
944
+ <td class="hdlist1">
945
+ Option value unit
946
+ <br />
947
+ </td>
948
+ <td class="hdlist2">
949
+ <p style="margin-top: 0;">
950
+ kilobits per second
951
+ </p>
952
+ </td>
953
+ </tr>
954
+ <tr>
955
+ <td class="hdlist1">
956
+ Default value
957
+ <br />
958
+ </td>
959
+ <td class="hdlist2">
960
+ <p style="margin-top: 0;">
961
+ 100
962
+ </p>
963
+ </td>
964
+ </tr>
965
+ <tr>
966
+ <td class="hdlist1">
967
+ Applicable socket types
968
+ <br />
969
+ </td>
970
+ <td class="hdlist2">
971
+ <p style="margin-top: 0;">
972
+ all, when using multicast transports
973
+ </p>
974
+ </td>
975
+ </tr>
976
+ </table></div>
977
+ <h3 id="_zmq_recovery_ivl_set_multicast_recovery_interval">ZMQ_RECOVERY_IVL: Set multicast recovery interval</h3><div style="clear:left"></div>
978
+ <div class="paragraph"><p>The <em>ZMQ_RECOVERY_IVL</em> option shall set the recovery interval for multicast
979
+ transports using the specified <em>socket</em>. The recovery interval determines the
980
+ maximum time in seconds that a receiver can be absent from a multicast group
981
+ before unrecoverable data loss will occur.</p></div>
982
+ <div class="admonitionblock">
983
+ <table><tr>
984
+ <td class="icon">
985
+ <div class="title">Caution</div>
986
+ </td>
987
+ <td class="content">Exercise care when setting large recovery intervals as the data
988
+ needed for recovery will be held in memory. For example, a 1 minute recovery
989
+ interval at a data rate of 1Gbps requires a 7GB in-memory buffer.</td>
990
+ </tr></table>
991
+ </div>
992
+ <div class="hdlist"><table>
993
+ <tr>
994
+ <td class="hdlist1">
995
+ Option value type
996
+ <br />
997
+ </td>
998
+ <td class="hdlist2">
999
+ <p style="margin-top: 0;">
1000
+ int64_t
1001
+ </p>
1002
+ </td>
1003
+ </tr>
1004
+ <tr>
1005
+ <td class="hdlist1">
1006
+ Option value unit
1007
+ <br />
1008
+ </td>
1009
+ <td class="hdlist2">
1010
+ <p style="margin-top: 0;">
1011
+ seconds
1012
+ </p>
1013
+ </td>
1014
+ </tr>
1015
+ <tr>
1016
+ <td class="hdlist1">
1017
+ Default value
1018
+ <br />
1019
+ </td>
1020
+ <td class="hdlist2">
1021
+ <p style="margin-top: 0;">
1022
+ 10
1023
+ </p>
1024
+ </td>
1025
+ </tr>
1026
+ <tr>
1027
+ <td class="hdlist1">
1028
+ Applicable socket types
1029
+ <br />
1030
+ </td>
1031
+ <td class="hdlist2">
1032
+ <p style="margin-top: 0;">
1033
+ all, when using multicast transports
1034
+ </p>
1035
+ </td>
1036
+ </tr>
1037
+ </table></div>
1038
+ <h3 id="_zmq_recovery_ivl_msec_set_multicast_recovery_interval_in_milliseconds">ZMQ_RECOVERY_IVL_MSEC: Set multicast recovery interval in milliseconds</h3><div style="clear:left"></div>
1039
+ <div class="paragraph"><p>The <em>ZMQ_RECOVERY_IVL_MSEC</em> option shall set the recovery interval, specified
1040
+ in milliseconds (ms) for multicast transports using the specified <em>socket</em>.
1041
+ The recovery interval determines the maximum time in milliseconds that a
1042
+ receiver can be absent from a multicast group before unrecoverable data loss
1043
+ will occur.</p></div>
1044
+ <div class="paragraph"><p>A non-zero value of the <em>ZMQ_RECOVERY_IVL_MSEC</em> option will take precedence
1045
+ over the <em>ZMQ_RECOVERY_IVL</em> option, but since the default for the
1046
+ <em>ZMQ_RECOVERY_IVL_MSEC</em> is -1, the default is to use the <em>ZMQ_RECOVERY_IVL</em>
1047
+ option value.</p></div>
1048
+ <div class="admonitionblock">
1049
+ <table><tr>
1050
+ <td class="icon">
1051
+ <div class="title">Caution</div>
1052
+ </td>
1053
+ <td class="content">Exercise care when setting large recovery intervals as the data
1054
+ needed for recovery will be held in memory. For example, a 1 minute recovery
1055
+ interval at a data rate of 1Gbps requires a 7GB in-memory buffer.</td>
1056
+ </tr></table>
1057
+ </div>
1058
+ <div class="hdlist"><table>
1059
+ <tr>
1060
+ <td class="hdlist1">
1061
+ Option value type
1062
+ <br />
1063
+ </td>
1064
+ <td class="hdlist2">
1065
+ <p style="margin-top: 0;">
1066
+ int64_t
1067
+ </p>
1068
+ </td>
1069
+ </tr>
1070
+ <tr>
1071
+ <td class="hdlist1">
1072
+ Option value unit
1073
+ <br />
1074
+ </td>
1075
+ <td class="hdlist2">
1076
+ <p style="margin-top: 0;">
1077
+ milliseconds
1078
+ </p>
1079
+ </td>
1080
+ </tr>
1081
+ <tr>
1082
+ <td class="hdlist1">
1083
+ Default value
1084
+ <br />
1085
+ </td>
1086
+ <td class="hdlist2">
1087
+ <p style="margin-top: 0;">
1088
+ -1
1089
+ </p>
1090
+ </td>
1091
+ </tr>
1092
+ <tr>
1093
+ <td class="hdlist1">
1094
+ Applicable socket types
1095
+ <br />
1096
+ </td>
1097
+ <td class="hdlist2">
1098
+ <p style="margin-top: 0;">
1099
+ all, when using multicast transports
1100
+ </p>
1101
+ </td>
1102
+ </tr>
1103
+ </table></div>
1104
+ <h3 id="_zmq_mcast_loop_control_multicast_loop_back">ZMQ_MCAST_LOOP: Control multicast loop-back</h3><div style="clear:left"></div>
1105
+ <div class="paragraph"><p>The <em>ZMQ_MCAST_LOOP</em> option shall control whether data sent via multicast
1106
+ transports using the specified <em>socket</em> can also be received by the sending
1107
+ host via loop-back. A value of zero disables the loop-back functionality, while
1108
+ the default value of 1 enables the loop-back functionality. Leaving multicast
1109
+ loop-back enabled when it is not required can have a negative impact on
1110
+ performance. Where possible, disable <em>ZMQ_MCAST_LOOP</em> in production
1111
+ environments.</p></div>
1112
+ <div class="hdlist"><table>
1113
+ <tr>
1114
+ <td class="hdlist1">
1115
+ Option value type
1116
+ <br />
1117
+ </td>
1118
+ <td class="hdlist2">
1119
+ <p style="margin-top: 0;">
1120
+ int64_t
1121
+ </p>
1122
+ </td>
1123
+ </tr>
1124
+ <tr>
1125
+ <td class="hdlist1">
1126
+ Option value unit
1127
+ <br />
1128
+ </td>
1129
+ <td class="hdlist2">
1130
+ <p style="margin-top: 0;">
1131
+ boolean
1132
+ </p>
1133
+ </td>
1134
+ </tr>
1135
+ <tr>
1136
+ <td class="hdlist1">
1137
+ Default value
1138
+ <br />
1139
+ </td>
1140
+ <td class="hdlist2">
1141
+ <p style="margin-top: 0;">
1142
+ 1
1143
+ </p>
1144
+ </td>
1145
+ </tr>
1146
+ <tr>
1147
+ <td class="hdlist1">
1148
+ Applicable socket types
1149
+ <br />
1150
+ </td>
1151
+ <td class="hdlist2">
1152
+ <p style="margin-top: 0;">
1153
+ all, when using multicast transports
1154
+ </p>
1155
+ </td>
1156
+ </tr>
1157
+ </table></div>
1158
+ <h3 id="_zmq_sndbuf_set_kernel_transmit_buffer_size">ZMQ_SNDBUF: Set kernel transmit buffer size</h3><div style="clear:left"></div>
1159
+ <div class="paragraph"><p>The <em>ZMQ_SNDBUF</em> option shall set the underlying kernel transmit buffer size
1160
+ for the <em>socket</em> to the specified size in bytes. A value of zero means leave
1161
+ the OS default unchanged. For details please refer to your operating system
1162
+ documentation for the <em>SO_SNDBUF</em> socket option.</p></div>
1163
+ <div class="hdlist"><table>
1164
+ <tr>
1165
+ <td class="hdlist1">
1166
+ Option value type
1167
+ <br />
1168
+ </td>
1169
+ <td class="hdlist2">
1170
+ <p style="margin-top: 0;">
1171
+ uint64_t
1172
+ </p>
1173
+ </td>
1174
+ </tr>
1175
+ <tr>
1176
+ <td class="hdlist1">
1177
+ Option value unit
1178
+ <br />
1179
+ </td>
1180
+ <td class="hdlist2">
1181
+ <p style="margin-top: 0;">
1182
+ bytes
1183
+ </p>
1184
+ </td>
1185
+ </tr>
1186
+ <tr>
1187
+ <td class="hdlist1">
1188
+ Default value
1189
+ <br />
1190
+ </td>
1191
+ <td class="hdlist2">
1192
+ <p style="margin-top: 0;">
1193
+ 0
1194
+ </p>
1195
+ </td>
1196
+ </tr>
1197
+ <tr>
1198
+ <td class="hdlist1">
1199
+ Applicable socket types
1200
+ <br />
1201
+ </td>
1202
+ <td class="hdlist2">
1203
+ <p style="margin-top: 0;">
1204
+ all
1205
+ </p>
1206
+ </td>
1207
+ </tr>
1208
+ </table></div>
1209
+ <h3 id="_zmq_rcvbuf_set_kernel_receive_buffer_size">ZMQ_RCVBUF: Set kernel receive buffer size</h3><div style="clear:left"></div>
1210
+ <div class="paragraph"><p>The <em>ZMQ_RCVBUF</em> option shall set the underlying kernel receive buffer size for
1211
+ the <em>socket</em> to the specified size in bytes. A value of zero means leave the
1212
+ OS default unchanged. For details refer to your operating system documentation
1213
+ for the <em>SO_RCVBUF</em> socket option.</p></div>
1214
+ <div class="hdlist"><table>
1215
+ <tr>
1216
+ <td class="hdlist1">
1217
+ Option value type
1218
+ <br />
1219
+ </td>
1220
+ <td class="hdlist2">
1221
+ <p style="margin-top: 0;">
1222
+ uint64_t
1223
+ </p>
1224
+ </td>
1225
+ </tr>
1226
+ <tr>
1227
+ <td class="hdlist1">
1228
+ Option value unit
1229
+ <br />
1230
+ </td>
1231
+ <td class="hdlist2">
1232
+ <p style="margin-top: 0;">
1233
+ bytes
1234
+ </p>
1235
+ </td>
1236
+ </tr>
1237
+ <tr>
1238
+ <td class="hdlist1">
1239
+ Default value
1240
+ <br />
1241
+ </td>
1242
+ <td class="hdlist2">
1243
+ <p style="margin-top: 0;">
1244
+ 0
1245
+ </p>
1246
+ </td>
1247
+ </tr>
1248
+ <tr>
1249
+ <td class="hdlist1">
1250
+ Applicable socket types
1251
+ <br />
1252
+ </td>
1253
+ <td class="hdlist2">
1254
+ <p style="margin-top: 0;">
1255
+ all
1256
+ </p>
1257
+ </td>
1258
+ </tr>
1259
+ </table></div>
1260
+ <h3 id="_zmq_linger_set_linger_period_for_socket_shutdown">ZMQ_LINGER: Set linger period for socket shutdown</h3><div style="clear:left"></div>
1261
+ <div class="paragraph"><p>The <em>ZMQ_LINGER</em> option shall set the linger period for the specified <em>socket</em>.
1262
+ The linger period determines how long pending messages which have yet to be
1263
+ sent to a peer shall linger in memory after a socket is closed with
1264
+ <a href="zmq_close.html">zmq_close(3)</a>, and further affects the termination of the socket&#8217;s
1265
+ context with <a href="zmq_term.html">zmq_term(3)</a>. The following outlines the different
1266
+ behaviours:</p></div>
1267
+ <div class="ulist"><ul>
1268
+ <li>
1269
+ <p>
1270
+ The default value of <em>-1</em> specifies an infinite linger period. Pending
1271
+ messages shall not be discarded after a call to <em>zmq_close()</em>; attempting to
1272
+ terminate the socket&#8217;s context with <em>zmq_term()</em> shall block until all
1273
+ pending messages have been sent to a peer.
1274
+ </p>
1275
+ </li>
1276
+ <li>
1277
+ <p>
1278
+ The value of <em>0</em> specifies no linger period. Pending messages shall be
1279
+ discarded immediately when the socket is closed with <em>zmq_close()</em>.
1280
+ </p>
1281
+ </li>
1282
+ <li>
1283
+ <p>
1284
+ Positive values specify an upper bound for the linger period in milliseconds.
1285
+ Pending messages shall not be discarded after a call to <em>zmq_close()</em>;
1286
+ attempting to terminate the socket&#8217;s context with <em>zmq_term()</em> shall block
1287
+ until either all pending messages have been sent to a peer, or the linger
1288
+ period expires, after which any pending messages shall be discarded.
1289
+ </p>
1290
+ <div class="hdlist"><table>
1291
+ <tr>
1292
+ <td class="hdlist1">
1293
+ Option value type
1294
+ <br />
1295
+ </td>
1296
+ <td class="hdlist2">
1297
+ <p style="margin-top: 0;">
1298
+ int
1299
+ </p>
1300
+ </td>
1301
+ </tr>
1302
+ <tr>
1303
+ <td class="hdlist1">
1304
+ Option value unit
1305
+ <br />
1306
+ </td>
1307
+ <td class="hdlist2">
1308
+ <p style="margin-top: 0;">
1309
+ milliseconds
1310
+ </p>
1311
+ </td>
1312
+ </tr>
1313
+ <tr>
1314
+ <td class="hdlist1">
1315
+ Default value
1316
+ <br />
1317
+ </td>
1318
+ <td class="hdlist2">
1319
+ <p style="margin-top: 0;">
1320
+ -1 (infinite)
1321
+ </p>
1322
+ </td>
1323
+ </tr>
1324
+ <tr>
1325
+ <td class="hdlist1">
1326
+ Applicable socket types
1327
+ <br />
1328
+ </td>
1329
+ <td class="hdlist2">
1330
+ <p style="margin-top: 0;">
1331
+ all
1332
+ </p>
1333
+ </td>
1334
+ </tr>
1335
+ </table></div>
1336
+ </li>
1337
+ </ul></div>
1338
+ <h3 id="_zmq_reconnect_ivl_set_reconnection_interval">ZMQ_RECONNECT_IVL: Set reconnection interval</h3><div style="clear:left"></div>
1339
+ <div class="paragraph"><p>The <em>ZMQ_RECONNECT_IVL</em> option shall set the initial reconnection interval for
1340
+ the specified <em>socket</em>. The reconnection interval is the period ØMQ
1341
+ shall wait between attempts to reconnect disconnected peers when using
1342
+ connection-oriented transports.</p></div>
1343
+ <div class="admonitionblock">
1344
+ <table><tr>
1345
+ <td class="icon">
1346
+ <div class="title">Note</div>
1347
+ </td>
1348
+ <td class="content">The reconnection interval may be randomized by ØMQ to prevent
1349
+ reconnection storms in topologies with a large number of peers per socket.</td>
1350
+ </tr></table>
1351
+ </div>
1352
+ <div class="hdlist"><table>
1353
+ <tr>
1354
+ <td class="hdlist1">
1355
+ Option value type
1356
+ <br />
1357
+ </td>
1358
+ <td class="hdlist2">
1359
+ <p style="margin-top: 0;">
1360
+ int
1361
+ </p>
1362
+ </td>
1363
+ </tr>
1364
+ <tr>
1365
+ <td class="hdlist1">
1366
+ Option value unit
1367
+ <br />
1368
+ </td>
1369
+ <td class="hdlist2">
1370
+ <p style="margin-top: 0;">
1371
+ milliseconds
1372
+ </p>
1373
+ </td>
1374
+ </tr>
1375
+ <tr>
1376
+ <td class="hdlist1">
1377
+ Default value
1378
+ <br />
1379
+ </td>
1380
+ <td class="hdlist2">
1381
+ <p style="margin-top: 0;">
1382
+ 100
1383
+ </p>
1384
+ </td>
1385
+ </tr>
1386
+ <tr>
1387
+ <td class="hdlist1">
1388
+ Applicable socket types
1389
+ <br />
1390
+ </td>
1391
+ <td class="hdlist2">
1392
+ <p style="margin-top: 0;">
1393
+ all, only for connection-oriented transports
1394
+ </p>
1395
+ </td>
1396
+ </tr>
1397
+ </table></div>
1398
+ <h3 id="_zmq_reconnect_ivl_max_set_maximum_reconnection_interval">ZMQ_RECONNECT_IVL_MAX: Set maximum reconnection interval</h3><div style="clear:left"></div>
1399
+ <div class="paragraph"><p>The <em>ZMQ_RECONNECT_IVL_MAX</em> option shall set the maximum reconnection interval
1400
+ for the specified <em>socket</em>. This is the maximum period ØMQ shall wait between
1401
+ attempts to reconnect. On each reconnect attempt, the previous interval shall be
1402
+ doubled untill ZMQ_RECONNECT_IVL_MAX is reached. This allows for exponential
1403
+ backoff strategy. Default value means no exponential backoff is performed and
1404
+ reconnect interval calculations are only based on ZMQ_RECONNECT_IVL.</p></div>
1405
+ <div class="admonitionblock">
1406
+ <table><tr>
1407
+ <td class="icon">
1408
+ <div class="title">Note</div>
1409
+ </td>
1410
+ <td class="content">Values less than ZMQ_RECONNECT_IVL will be ignored.</td>
1411
+ </tr></table>
1412
+ </div>
1413
+ <div class="hdlist"><table>
1414
+ <tr>
1415
+ <td class="hdlist1">
1416
+ Option value type
1417
+ <br />
1418
+ </td>
1419
+ <td class="hdlist2">
1420
+ <p style="margin-top: 0;">
1421
+ int
1422
+ </p>
1423
+ </td>
1424
+ </tr>
1425
+ <tr>
1426
+ <td class="hdlist1">
1427
+ Option value unit
1428
+ <br />
1429
+ </td>
1430
+ <td class="hdlist2">
1431
+ <p style="margin-top: 0;">
1432
+ milliseconds
1433
+ </p>
1434
+ </td>
1435
+ </tr>
1436
+ <tr>
1437
+ <td class="hdlist1">
1438
+ Default value
1439
+ <br />
1440
+ </td>
1441
+ <td class="hdlist2">
1442
+ <p style="margin-top: 0;">
1443
+ 0 (only use ZMQ_RECONNECT_IVL)
1444
+ </p>
1445
+ </td>
1446
+ </tr>
1447
+ <tr>
1448
+ <td class="hdlist1">
1449
+ Applicable socket types
1450
+ <br />
1451
+ </td>
1452
+ <td class="hdlist2">
1453
+ <p style="margin-top: 0;">
1454
+ all, only for connection-oriented transports
1455
+ </p>
1456
+ </td>
1457
+ </tr>
1458
+ </table></div>
1459
+ <h3 id="_zmq_backlog_set_maximum_length_of_the_queue_of_outstanding_connections">ZMQ_BACKLOG: Set maximum length of the queue of outstanding connections</h3><div style="clear:left"></div>
1460
+ <div class="paragraph"><p>The <em>ZMQ_BACKLOG</em> option shall set the maximum length of the queue of
1461
+ outstanding peer connections for the specified <em>socket</em>; this only applies to
1462
+ connection-oriented transports. For details refer to your operating system
1463
+ documentation for the <em>listen</em> function.</p></div>
1464
+ <div class="hdlist"><table>
1465
+ <tr>
1466
+ <td class="hdlist1">
1467
+ Option value type
1468
+ <br />
1469
+ </td>
1470
+ <td class="hdlist2">
1471
+ <p style="margin-top: 0;">
1472
+ int
1473
+ </p>
1474
+ </td>
1475
+ </tr>
1476
+ <tr>
1477
+ <td class="hdlist1">
1478
+ Option value unit
1479
+ <br />
1480
+ </td>
1481
+ <td class="hdlist2">
1482
+ <p style="margin-top: 0;">
1483
+ connections
1484
+ </p>
1485
+ </td>
1486
+ </tr>
1487
+ <tr>
1488
+ <td class="hdlist1">
1489
+ Default value
1490
+ <br />
1491
+ </td>
1492
+ <td class="hdlist2">
1493
+ <p style="margin-top: 0;">
1494
+ 100
1495
+ </p>
1496
+ </td>
1497
+ </tr>
1498
+ <tr>
1499
+ <td class="hdlist1">
1500
+ Applicable socket types
1501
+ <br />
1502
+ </td>
1503
+ <td class="hdlist2">
1504
+ <p style="margin-top: 0;">
1505
+ all, only for connection-oriented transports.
1506
+ </p>
1507
+ </td>
1508
+ </tr>
1509
+ </table></div>
1510
+ </div>
1511
+ <h2 id="_return_value">RETURN VALUE</h2>
1512
+ <div class="sectionbody">
1513
+ <div class="paragraph"><p>The <em>zmq_setsockopt()</em> function shall return zero if successful. Otherwise it
1514
+ shall return <tt>-1</tt> and set <em>errno</em> to one of the values defined below.</p></div>
1515
+ </div>
1516
+ <h2 id="_errors">ERRORS</h2>
1517
+ <div class="sectionbody">
1518
+ <div class="dlist"><dl>
1519
+ <dt class="hdlist1">
1520
+ <strong>EINVAL</strong>
1521
+ </dt>
1522
+ <dd>
1523
+ <p>
1524
+ The requested option <em>option_name</em> is unknown, or the requested <em>option_len</em> or
1525
+ <em>option_value</em> is invalid.
1526
+ </p>
1527
+ </dd>
1528
+ <dt class="hdlist1">
1529
+ <strong>ETERM</strong>
1530
+ </dt>
1531
+ <dd>
1532
+ <p>
1533
+ The ØMQ <em>context</em> associated with the specified <em>socket</em> was terminated.
1534
+ </p>
1535
+ </dd>
1536
+ <dt class="hdlist1">
1537
+ <strong>ENOTSOCK</strong>
1538
+ </dt>
1539
+ <dd>
1540
+ <p>
1541
+ The provided <em>socket</em> was invalid.
1542
+ </p>
1543
+ </dd>
1544
+ <dt class="hdlist1">
1545
+ <strong>EINTR</strong>
1546
+ </dt>
1547
+ <dd>
1548
+ <p>
1549
+ The operation was interrupted by delivery of a signal.
1550
+ </p>
1551
+ </dd>
1552
+ </dl></div>
1553
+ </div>
1554
+ <h2 id="_example">EXAMPLE</h2>
1555
+ <div class="sectionbody">
1556
+ <div class="listingblock">
1557
+ <div class="title">Subscribing to messages on a <em>ZMQ_SUB</em> socket</div>
1558
+ <div class="content">
1559
+ <pre><tt>/* Subscribe to all messages */
1560
+ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "", 0);
1561
+ assert (rc == 0);
1562
+ /* Subscribe to messages prefixed with "ANIMALS.CATS" */
1563
+ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "ANIMALS.CATS", 12);</tt></pre>
1564
+ </div></div>
1565
+ <div class="listingblock">
1566
+ <div class="title">Setting I/O thread affinity</div>
1567
+ <div class="content">
1568
+ <pre><tt>int64_t affinity;
1569
+ /* Incoming connections on TCP port 5555 shall be handled by I/O thread 1 */
1570
+ affinity = 1;
1571
+ rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &amp;affinity, sizeof affinity);
1572
+ assert (rc);
1573
+ rc = zmq_bind (socket, "tcp://lo:5555");
1574
+ assert (rc);
1575
+ /* Incoming connections on TCP port 5556 shall be handled by I/O thread 2 */
1576
+ affinity = 2;
1577
+ rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &amp;affinity, sizeof affinity);
1578
+ assert (rc);
1579
+ rc = zmq_bind (socket, "tcp://lo:5556");
1580
+ assert (rc);</tt></pre>
1581
+ </div></div>
1582
+ </div>
1583
+ <h2 id="_see_also">SEE ALSO</h2>
1584
+ <div class="sectionbody">
1585
+ <div class="paragraph"><p><a href="zmq_getsockopt.html">zmq_getsockopt(3)</a>
1586
+ <a href="zmq_socket.html">zmq_socket(3)</a>
1587
+ <a href="zmq.html">zmq(7)</a></p></div>
1588
+ </div>
1589
+ <h2 id="_authors">AUTHORS</h2>
1590
+ <div class="sectionbody">
1591
+ <div class="paragraph"><p>This ØMQ manual page was written by Martin Sustrik &lt;<a href="mailto:sustrik@250bpm.com">sustrik@250bpm.com</a>&gt; and
1592
+ Martin Lucina &lt;<a href="mailto:mato@kotelna.sk">mato@kotelna.sk</a>&gt;.</p></div>
1593
+ </div>
1594
+ </div>
1595
+ <div id="footnotes"><hr /></div>
1596
+ <div id="footer">
1597
+ <div id="footer-text">
1598
+ ØMQ 2.1.6<br />
1599
+ Last updated 2011-05-07 07:13:32 CEST
1600
+ </div>
1601
+ </div>
1602
+ </body>
1603
+ </html>