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,1713 @@
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_getsockopt(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_getsockopt(3) Manual Page
574
+ </h1>
575
+ <h2>NAME</h2>
576
+ <div class="sectionbody">
577
+ <p>zmq_getsockopt -
578
+ get 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_getsockopt (void <em>*socket</em>, int <em>option_name</em>, void <em>*option_value</em>, size_t <em>*option_len</em>);</strong></p></div>
586
+ </div>
587
+ <h2 id="_description">DESCRIPTION</h2>
588
+ <div class="sectionbody">
589
+ <div class="paragraph"><p>The <em>zmq_getsockopt()</em> function shall retrieve the value for the option
590
+ specified by the <em>option_name</em> argument for the ØMQ socket pointed to by the
591
+ <em>socket</em> argument, and store it in the buffer pointed to by the <em>option_value</em>
592
+ argument. The <em>option_len</em> argument is the size in bytes of the buffer pointed
593
+ to by <em>option_value</em>; upon successful completion <em>zmq_getsockopt()</em> shall
594
+ modify the <em>option_len</em> argument to indicate the actual size of the option
595
+ value stored in the buffer.</p></div>
596
+ <div class="paragraph"><p>The following options can be retrieved with the <em>zmq_getsockopt()</em> function:</p></div>
597
+ <h3 id="_zmq_type_retrieve_socket_type">ZMQ_TYPE: Retrieve socket type</h3><div style="clear:left"></div>
598
+ <div class="paragraph"><p>The <em>ZMQ_TYPE</em> option shall retrieve the socket type for the specified
599
+ <em>socket</em>. The socket type is specified at socket creation time and
600
+ cannot be modified afterwards.</p></div>
601
+ <div class="hdlist"><table>
602
+ <tr>
603
+ <td class="hdlist1">
604
+ Option value type
605
+ <br />
606
+ </td>
607
+ <td class="hdlist2">
608
+ <p style="margin-top: 0;">
609
+ int
610
+ </p>
611
+ </td>
612
+ </tr>
613
+ <tr>
614
+ <td class="hdlist1">
615
+ Option value unit
616
+ <br />
617
+ </td>
618
+ <td class="hdlist2">
619
+ <p style="margin-top: 0;">
620
+ N/A
621
+ </p>
622
+ </td>
623
+ </tr>
624
+ <tr>
625
+ <td class="hdlist1">
626
+ Default value
627
+ <br />
628
+ </td>
629
+ <td class="hdlist2">
630
+ <p style="margin-top: 0;">
631
+ N/A
632
+ </p>
633
+ </td>
634
+ </tr>
635
+ <tr>
636
+ <td class="hdlist1">
637
+ Applicable socket types
638
+ <br />
639
+ </td>
640
+ <td class="hdlist2">
641
+ <p style="margin-top: 0;">
642
+ all
643
+ </p>
644
+ </td>
645
+ </tr>
646
+ </table></div>
647
+ <h3 id="_zmq_rcvmore_more_message_parts_to_follow">ZMQ_RCVMORE: More message parts to follow</h3><div style="clear:left"></div>
648
+ <div class="paragraph"><p>The <em>ZMQ_RCVMORE</em> option shall return a boolean value indicating if the
649
+ multi-part message currently being read from the specified <em>socket</em> has more
650
+ message parts to follow. If there are no message parts to follow or if the
651
+ message currently being read is not a multi-part message a value of zero shall
652
+ be returned. Otherwise, a value of 1 shall be returned.</p></div>
653
+ <div class="paragraph"><p>Refer to <a href="zmq_send.html">zmq_send(3)</a> and <a href="zmq_recv.html">zmq_recv(3)</a> for a detailed description
654
+ of sending/receiving multi-part messages.</p></div>
655
+ <div class="hdlist"><table>
656
+ <tr>
657
+ <td class="hdlist1">
658
+ Option value type
659
+ <br />
660
+ </td>
661
+ <td class="hdlist2">
662
+ <p style="margin-top: 0;">
663
+ int64_t
664
+ </p>
665
+ </td>
666
+ </tr>
667
+ <tr>
668
+ <td class="hdlist1">
669
+ Option value unit
670
+ <br />
671
+ </td>
672
+ <td class="hdlist2">
673
+ <p style="margin-top: 0;">
674
+ boolean
675
+ </p>
676
+ </td>
677
+ </tr>
678
+ <tr>
679
+ <td class="hdlist1">
680
+ Default value
681
+ <br />
682
+ </td>
683
+ <td class="hdlist2">
684
+ <p style="margin-top: 0;">
685
+ N/A
686
+ </p>
687
+ </td>
688
+ </tr>
689
+ <tr>
690
+ <td class="hdlist1">
691
+ Applicable socket types
692
+ <br />
693
+ </td>
694
+ <td class="hdlist2">
695
+ <p style="margin-top: 0;">
696
+ all
697
+ </p>
698
+ </td>
699
+ </tr>
700
+ </table></div>
701
+ <h3 id="_zmq_hwm_retrieve_high_water_mark">ZMQ_HWM: Retrieve high water mark</h3><div style="clear:left"></div>
702
+ <div class="paragraph"><p>The <em>ZMQ_HWM</em> option shall retrieve the high water mark for the specified
703
+ <em>socket</em>. The high water mark is a hard limit on the maximum number of
704
+ outstanding messages ØMQ shall queue in memory for any single peer that the
705
+ specified <em>socket</em> is communicating with.</p></div>
706
+ <div class="paragraph"><p>If this limit has been reached the socket shall enter an exceptional state and
707
+ depending on the socket type, ØMQ shall take appropriate action such as
708
+ blocking or dropping sent messages. Refer to the individual socket descriptions
709
+ in <a href="zmq_socket.html">zmq_socket(3)</a> for details on the exact action taken for each socket
710
+ type.</p></div>
711
+ <div class="paragraph"><p>The default <em>ZMQ_HWM</em> value of zero means "no limit".</p></div>
712
+ <div class="hdlist"><table>
713
+ <tr>
714
+ <td class="hdlist1">
715
+ Option value type
716
+ <br />
717
+ </td>
718
+ <td class="hdlist2">
719
+ <p style="margin-top: 0;">
720
+ uint64_t
721
+ </p>
722
+ </td>
723
+ </tr>
724
+ <tr>
725
+ <td class="hdlist1">
726
+ Option value unit
727
+ <br />
728
+ </td>
729
+ <td class="hdlist2">
730
+ <p style="margin-top: 0;">
731
+ messages
732
+ </p>
733
+ </td>
734
+ </tr>
735
+ <tr>
736
+ <td class="hdlist1">
737
+ Default value
738
+ <br />
739
+ </td>
740
+ <td class="hdlist2">
741
+ <p style="margin-top: 0;">
742
+ 0
743
+ </p>
744
+ </td>
745
+ </tr>
746
+ <tr>
747
+ <td class="hdlist1">
748
+ Applicable socket types
749
+ <br />
750
+ </td>
751
+ <td class="hdlist2">
752
+ <p style="margin-top: 0;">
753
+ all
754
+ </p>
755
+ </td>
756
+ </tr>
757
+ </table></div>
758
+ <h3 id="_zmq_swap_retrieve_disk_offload_size">ZMQ_SWAP: Retrieve disk offload size</h3><div style="clear:left"></div>
759
+ <div class="paragraph"><p>The <em>ZMQ_SWAP</em> option shall retrieve the disk offload (swap) size for the
760
+ specified <em>socket</em>. A socket which has <em>ZMQ_SWAP</em> set to a non-zero value may
761
+ exceed it&#8217;s high water mark; in this case outstanding messages shall be
762
+ offloaded to storage on disk rather than held in memory.</p></div>
763
+ <div class="paragraph"><p>The value of <em>ZMQ_SWAP</em> defines the maximum size of the swap space in bytes.</p></div>
764
+ <div class="hdlist"><table>
765
+ <tr>
766
+ <td class="hdlist1">
767
+ Option value type
768
+ <br />
769
+ </td>
770
+ <td class="hdlist2">
771
+ <p style="margin-top: 0;">
772
+ int64_t
773
+ </p>
774
+ </td>
775
+ </tr>
776
+ <tr>
777
+ <td class="hdlist1">
778
+ Option value unit
779
+ <br />
780
+ </td>
781
+ <td class="hdlist2">
782
+ <p style="margin-top: 0;">
783
+ bytes
784
+ </p>
785
+ </td>
786
+ </tr>
787
+ <tr>
788
+ <td class="hdlist1">
789
+ Default value
790
+ <br />
791
+ </td>
792
+ <td class="hdlist2">
793
+ <p style="margin-top: 0;">
794
+ 0
795
+ </p>
796
+ </td>
797
+ </tr>
798
+ <tr>
799
+ <td class="hdlist1">
800
+ Applicable socket types
801
+ <br />
802
+ </td>
803
+ <td class="hdlist2">
804
+ <p style="margin-top: 0;">
805
+ all
806
+ </p>
807
+ </td>
808
+ </tr>
809
+ </table></div>
810
+ <h3 id="_zmq_affinity_retrieve_i_o_thread_affinity">ZMQ_AFFINITY: Retrieve I/O thread affinity</h3><div style="clear:left"></div>
811
+ <div class="paragraph"><p>The <em>ZMQ_AFFINITY</em> option shall retrieve the I/O thread affinity for newly
812
+ created connections on the specified <em>socket</em>.</p></div>
813
+ <div class="paragraph"><p>Affinity determines which threads from the ØMQ I/O thread pool associated with
814
+ the socket&#8217;s <em>context</em> shall handle newly created connections. A value of zero
815
+ specifies no affinity, meaning that work shall be distributed fairly among all
816
+ ØMQ I/O threads in the thread pool. For non-zero values, the lowest bit
817
+ corresponds to thread 1, second lowest bit to thread 2 and so on. For example,
818
+ a value of 3 specifies that subsequent connections on <em>socket</em> shall be handled
819
+ exclusively by I/O threads 1 and 2.</p></div>
820
+ <div class="paragraph"><p>See also <a href="zmq_init.html">zmq_init(3)</a> for details on allocating the number of I/O
821
+ threads for a specific <em>context</em>.</p></div>
822
+ <div class="hdlist"><table>
823
+ <tr>
824
+ <td class="hdlist1">
825
+ Option value type
826
+ <br />
827
+ </td>
828
+ <td class="hdlist2">
829
+ <p style="margin-top: 0;">
830
+ uint64_t
831
+ </p>
832
+ </td>
833
+ </tr>
834
+ <tr>
835
+ <td class="hdlist1">
836
+ Option value unit
837
+ <br />
838
+ </td>
839
+ <td class="hdlist2">
840
+ <p style="margin-top: 0;">
841
+ N/A (bitmap)
842
+ </p>
843
+ </td>
844
+ </tr>
845
+ <tr>
846
+ <td class="hdlist1">
847
+ Default value
848
+ <br />
849
+ </td>
850
+ <td class="hdlist2">
851
+ <p style="margin-top: 0;">
852
+ 0
853
+ </p>
854
+ </td>
855
+ </tr>
856
+ <tr>
857
+ <td class="hdlist1">
858
+ Applicable socket types
859
+ <br />
860
+ </td>
861
+ <td class="hdlist2">
862
+ <p style="margin-top: 0;">
863
+ N/A
864
+ </p>
865
+ </td>
866
+ </tr>
867
+ </table></div>
868
+ <h3 id="_zmq_identity_retrieve_socket_identity">ZMQ_IDENTITY: Retrieve socket identity</h3><div style="clear:left"></div>
869
+ <div class="paragraph"><p>The <em>ZMQ_IDENTITY</em> option shall retrieve the identity of the specified
870
+ <em>socket</em>. Socket identity determines if existing ØMQ infrastructure (<em>message
871
+ queues</em>, <em>forwarding devices</em>) shall be identified with a specific application
872
+ and persist across multiple runs of the application.</p></div>
873
+ <div class="paragraph"><p>If the socket has no identity, each run of an application is completely
874
+ separate from other runs. However, with identity set the socket shall re-use
875
+ any existing ØMQ infrastructure configured by the previous run(s). Thus the
876
+ application may receive messages that were sent in the meantime, <em>message
877
+ queue</em> limits shall be shared with previous run(s) and so on.</p></div>
878
+ <div class="paragraph"><p>Identity can be at least one byte and at most 255 bytes long. Identities
879
+ starting with binary zero are reserved for use by ØMQ infrastructure.</p></div>
880
+ <div class="hdlist"><table>
881
+ <tr>
882
+ <td class="hdlist1">
883
+ Option value type
884
+ <br />
885
+ </td>
886
+ <td class="hdlist2">
887
+ <p style="margin-top: 0;">
888
+ binary data
889
+ </p>
890
+ </td>
891
+ </tr>
892
+ <tr>
893
+ <td class="hdlist1">
894
+ Option value unit
895
+ <br />
896
+ </td>
897
+ <td class="hdlist2">
898
+ <p style="margin-top: 0;">
899
+ N/A
900
+ </p>
901
+ </td>
902
+ </tr>
903
+ <tr>
904
+ <td class="hdlist1">
905
+ Default value
906
+ <br />
907
+ </td>
908
+ <td class="hdlist2">
909
+ <p style="margin-top: 0;">
910
+ NULL
911
+ </p>
912
+ </td>
913
+ </tr>
914
+ <tr>
915
+ <td class="hdlist1">
916
+ Applicable socket types
917
+ <br />
918
+ </td>
919
+ <td class="hdlist2">
920
+ <p style="margin-top: 0;">
921
+ all
922
+ </p>
923
+ </td>
924
+ </tr>
925
+ </table></div>
926
+ <h3 id="_zmq_rate_retrieve_multicast_data_rate">ZMQ_RATE: Retrieve multicast data rate</h3><div style="clear:left"></div>
927
+ <div class="paragraph"><p>The <em>ZMQ_RATE</em> option shall retrieve the maximum send or receive data rate for
928
+ multicast transports using the specified <em>socket</em>.</p></div>
929
+ <div class="hdlist"><table>
930
+ <tr>
931
+ <td class="hdlist1">
932
+ Option value type
933
+ <br />
934
+ </td>
935
+ <td class="hdlist2">
936
+ <p style="margin-top: 0;">
937
+ int64_t
938
+ </p>
939
+ </td>
940
+ </tr>
941
+ <tr>
942
+ <td class="hdlist1">
943
+ Option value unit
944
+ <br />
945
+ </td>
946
+ <td class="hdlist2">
947
+ <p style="margin-top: 0;">
948
+ kilobits per second
949
+ </p>
950
+ </td>
951
+ </tr>
952
+ <tr>
953
+ <td class="hdlist1">
954
+ Default value
955
+ <br />
956
+ </td>
957
+ <td class="hdlist2">
958
+ <p style="margin-top: 0;">
959
+ 100
960
+ </p>
961
+ </td>
962
+ </tr>
963
+ <tr>
964
+ <td class="hdlist1">
965
+ Applicable socket types
966
+ <br />
967
+ </td>
968
+ <td class="hdlist2">
969
+ <p style="margin-top: 0;">
970
+ all, when using multicast transports
971
+ </p>
972
+ </td>
973
+ </tr>
974
+ </table></div>
975
+ <h3 id="_zmq_recovery_ivl_get_multicast_recovery_interval">ZMQ_RECOVERY_IVL: Get multicast recovery interval</h3><div style="clear:left"></div>
976
+ <div class="paragraph"><p>The <em>ZMQ_RECOVERY_IVL</em> option shall retrieve the recovery interval for
977
+ multicast transports using the specified <em>socket</em>. The recovery interval
978
+ determines the maximum time in seconds that a receiver can be absent from a
979
+ multicast group before unrecoverable data loss will occur.</p></div>
980
+ <div class="hdlist"><table>
981
+ <tr>
982
+ <td class="hdlist1">
983
+ Option value type
984
+ <br />
985
+ </td>
986
+ <td class="hdlist2">
987
+ <p style="margin-top: 0;">
988
+ int64_t
989
+ </p>
990
+ </td>
991
+ </tr>
992
+ <tr>
993
+ <td class="hdlist1">
994
+ Option value unit
995
+ <br />
996
+ </td>
997
+ <td class="hdlist2">
998
+ <p style="margin-top: 0;">
999
+ seconds
1000
+ </p>
1001
+ </td>
1002
+ </tr>
1003
+ <tr>
1004
+ <td class="hdlist1">
1005
+ Default value
1006
+ <br />
1007
+ </td>
1008
+ <td class="hdlist2">
1009
+ <p style="margin-top: 0;">
1010
+ 10
1011
+ </p>
1012
+ </td>
1013
+ </tr>
1014
+ <tr>
1015
+ <td class="hdlist1">
1016
+ Applicable socket types
1017
+ <br />
1018
+ </td>
1019
+ <td class="hdlist2">
1020
+ <p style="margin-top: 0;">
1021
+ all, when using multicast transports
1022
+ </p>
1023
+ </td>
1024
+ </tr>
1025
+ </table></div>
1026
+ <h3 id="_zmq_recovery_ivl_msec_get_multicast_recovery_interval_in_milliseconds">ZMQ_RECOVERY_IVL_MSEC: Get multicast recovery interval in milliseconds</h3><div style="clear:left"></div>
1027
+ <div class="paragraph"><p>The <em>ZMQ_RECOVERY_IVL&#8217;_MSEC option shall retrieve the recovery interval, in
1028
+ milliseconds, for multicast transports using the specified 'socket</em>. The
1029
+ recovery interval determines the maximum time in seconds that a receiver
1030
+ can be absent from a multicast group before unrecoverable data loss will
1031
+ occur.</p></div>
1032
+ <div class="paragraph"><p>For backward compatibility, the default value of <em>ZMQ_RECOVERY_IVL_MSEC</em> is
1033
+ -1 indicating that the recovery interval should be obtained from the
1034
+ <em>ZMQ_RECOVERY_IVL</em> option. However, if the <em>ZMQ_RECOVERY_IVL_MSEC</em> value is
1035
+ not zero, then it will take precedence, and be used.</p></div>
1036
+ <div class="hdlist"><table>
1037
+ <tr>
1038
+ <td class="hdlist1">
1039
+ Option value type
1040
+ <br />
1041
+ </td>
1042
+ <td class="hdlist2">
1043
+ <p style="margin-top: 0;">
1044
+ int64_t
1045
+ </p>
1046
+ </td>
1047
+ </tr>
1048
+ <tr>
1049
+ <td class="hdlist1">
1050
+ Option value unit
1051
+ <br />
1052
+ </td>
1053
+ <td class="hdlist2">
1054
+ <p style="margin-top: 0;">
1055
+ milliseconds
1056
+ </p>
1057
+ </td>
1058
+ </tr>
1059
+ <tr>
1060
+ <td class="hdlist1">
1061
+ Default value
1062
+ <br />
1063
+ </td>
1064
+ <td class="hdlist2">
1065
+ <p style="margin-top: 0;">
1066
+ -1
1067
+ </p>
1068
+ </td>
1069
+ </tr>
1070
+ <tr>
1071
+ <td class="hdlist1">
1072
+ Applicable socket types
1073
+ <br />
1074
+ </td>
1075
+ <td class="hdlist2">
1076
+ <p style="margin-top: 0;">
1077
+ all, when using multicast transports
1078
+ </p>
1079
+ </td>
1080
+ </tr>
1081
+ </table></div>
1082
+ <h3 id="_zmq_mcast_loop_control_multicast_loop_back">ZMQ_MCAST_LOOP: Control multicast loop-back</h3><div style="clear:left"></div>
1083
+ <div class="paragraph"><p>The <em>ZMQ_MCAST_LOOP</em> option controls whether data sent via multicast
1084
+ transports can also be received by the sending host via loop-back. A value of
1085
+ zero indicates that the loop-back functionality is disabled, while the default
1086
+ value of 1 indicates that the loop-back functionality is enabled. Leaving
1087
+ multicast loop-back enabled when it is not required can have a negative impact
1088
+ on performance. Where possible, disable <em>ZMQ_MCAST_LOOP</em> in production
1089
+ environments.</p></div>
1090
+ <div class="hdlist"><table>
1091
+ <tr>
1092
+ <td class="hdlist1">
1093
+ Option value type
1094
+ <br />
1095
+ </td>
1096
+ <td class="hdlist2">
1097
+ <p style="margin-top: 0;">
1098
+ int64_t
1099
+ </p>
1100
+ </td>
1101
+ </tr>
1102
+ <tr>
1103
+ <td class="hdlist1">
1104
+ Option value unit
1105
+ <br />
1106
+ </td>
1107
+ <td class="hdlist2">
1108
+ <p style="margin-top: 0;">
1109
+ boolean
1110
+ </p>
1111
+ </td>
1112
+ </tr>
1113
+ <tr>
1114
+ <td class="hdlist1">
1115
+ Default value
1116
+ <br />
1117
+ </td>
1118
+ <td class="hdlist2">
1119
+ <p style="margin-top: 0;">
1120
+ 1
1121
+ </p>
1122
+ </td>
1123
+ </tr>
1124
+ <tr>
1125
+ <td class="hdlist1">
1126
+ Applicable socket types
1127
+ <br />
1128
+ </td>
1129
+ <td class="hdlist2">
1130
+ <p style="margin-top: 0;">
1131
+ all, when using multicast transports
1132
+ </p>
1133
+ </td>
1134
+ </tr>
1135
+ </table></div>
1136
+ <h3 id="_zmq_sndbuf_retrieve_kernel_transmit_buffer_size">ZMQ_SNDBUF: Retrieve kernel transmit buffer size</h3><div style="clear:left"></div>
1137
+ <div class="paragraph"><p>The <em>ZMQ_SNDBUF</em> option shall retrieve the underlying kernel transmit buffer
1138
+ size for the specified <em>socket</em>. A value of zero means that the OS default is
1139
+ in effect. For details refer to your operating system documentation for the
1140
+ <em>SO_SNDBUF</em> socket option.</p></div>
1141
+ <div class="hdlist"><table>
1142
+ <tr>
1143
+ <td class="hdlist1">
1144
+ Option value type
1145
+ <br />
1146
+ </td>
1147
+ <td class="hdlist2">
1148
+ <p style="margin-top: 0;">
1149
+ uint64_t
1150
+ </p>
1151
+ </td>
1152
+ </tr>
1153
+ <tr>
1154
+ <td class="hdlist1">
1155
+ Option value unit
1156
+ <br />
1157
+ </td>
1158
+ <td class="hdlist2">
1159
+ <p style="margin-top: 0;">
1160
+ bytes
1161
+ </p>
1162
+ </td>
1163
+ </tr>
1164
+ <tr>
1165
+ <td class="hdlist1">
1166
+ Default value
1167
+ <br />
1168
+ </td>
1169
+ <td class="hdlist2">
1170
+ <p style="margin-top: 0;">
1171
+ 0
1172
+ </p>
1173
+ </td>
1174
+ </tr>
1175
+ <tr>
1176
+ <td class="hdlist1">
1177
+ Applicable socket types
1178
+ <br />
1179
+ </td>
1180
+ <td class="hdlist2">
1181
+ <p style="margin-top: 0;">
1182
+ all
1183
+ </p>
1184
+ </td>
1185
+ </tr>
1186
+ </table></div>
1187
+ <h3 id="_zmq_rcvbuf_retrieve_kernel_receive_buffer_size">ZMQ_RCVBUF: Retrieve kernel receive buffer size</h3><div style="clear:left"></div>
1188
+ <div class="paragraph"><p>The <em>ZMQ_RCVBUF</em> option shall retrieve the underlying kernel receive buffer
1189
+ size for the specified <em>socket</em>. A value of zero means that the OS default is
1190
+ in effect. For details refer to your operating system documentation for the
1191
+ <em>SO_RCVBUF</em> socket option.</p></div>
1192
+ <div class="hdlist"><table>
1193
+ <tr>
1194
+ <td class="hdlist1">
1195
+ Option value type
1196
+ <br />
1197
+ </td>
1198
+ <td class="hdlist2">
1199
+ <p style="margin-top: 0;">
1200
+ uint64_t
1201
+ </p>
1202
+ </td>
1203
+ </tr>
1204
+ <tr>
1205
+ <td class="hdlist1">
1206
+ Option value unit
1207
+ <br />
1208
+ </td>
1209
+ <td class="hdlist2">
1210
+ <p style="margin-top: 0;">
1211
+ bytes
1212
+ </p>
1213
+ </td>
1214
+ </tr>
1215
+ <tr>
1216
+ <td class="hdlist1">
1217
+ Default value
1218
+ <br />
1219
+ </td>
1220
+ <td class="hdlist2">
1221
+ <p style="margin-top: 0;">
1222
+ 0
1223
+ </p>
1224
+ </td>
1225
+ </tr>
1226
+ <tr>
1227
+ <td class="hdlist1">
1228
+ Applicable socket types
1229
+ <br />
1230
+ </td>
1231
+ <td class="hdlist2">
1232
+ <p style="margin-top: 0;">
1233
+ all
1234
+ </p>
1235
+ </td>
1236
+ </tr>
1237
+ </table></div>
1238
+ <h3 id="_zmq_linger_retrieve_linger_period_for_socket_shutdown">ZMQ_LINGER: Retrieve linger period for socket shutdown</h3><div style="clear:left"></div>
1239
+ <div class="paragraph"><p>The <em>ZMQ_LINGER</em> option shall retrieve the linger period for the specified
1240
+ <em>socket</em>. The linger period determines how long pending messages which have
1241
+ yet to be sent to a peer shall linger in memory after a socket is closed with
1242
+ <a href="zmq_close.html">zmq_close(3)</a>, and further affects the termination of the socket&#8217;s
1243
+ context with <a href="zmq_term.html">zmq_term(3)</a>. The following outlines the different
1244
+ behaviours:</p></div>
1245
+ <div class="ulist"><ul>
1246
+ <li>
1247
+ <p>
1248
+ The default value of <em>-1</em> specifies an infinite linger period. Pending
1249
+ messages shall not be discarded after a call to <em>zmq_close()</em>; attempting to
1250
+ terminate the socket&#8217;s context with <em>zmq_term()</em> shall block until all
1251
+ pending messages have been sent to a peer.
1252
+ </p>
1253
+ </li>
1254
+ <li>
1255
+ <p>
1256
+ The value of <em>0</em> specifies no linger period. Pending messages shall be
1257
+ discarded immediately when the socket is closed with <em>zmq_close()</em>.
1258
+ </p>
1259
+ </li>
1260
+ <li>
1261
+ <p>
1262
+ Positive values specify an upper bound for the linger period in milliseconds.
1263
+ Pending messages shall not be discarded after a call to <em>zmq_close()</em>;
1264
+ attempting to terminate the socket&#8217;s context with <em>zmq_term()</em> shall block
1265
+ until either all pending messages have been sent to a peer, or the linger
1266
+ period expires, after which any pending messages shall be discarded.
1267
+ </p>
1268
+ <div class="hdlist"><table>
1269
+ <tr>
1270
+ <td class="hdlist1">
1271
+ Option value type
1272
+ <br />
1273
+ </td>
1274
+ <td class="hdlist2">
1275
+ <p style="margin-top: 0;">
1276
+ int
1277
+ </p>
1278
+ </td>
1279
+ </tr>
1280
+ <tr>
1281
+ <td class="hdlist1">
1282
+ Option value unit
1283
+ <br />
1284
+ </td>
1285
+ <td class="hdlist2">
1286
+ <p style="margin-top: 0;">
1287
+ milliseconds
1288
+ </p>
1289
+ </td>
1290
+ </tr>
1291
+ <tr>
1292
+ <td class="hdlist1">
1293
+ Default value
1294
+ <br />
1295
+ </td>
1296
+ <td class="hdlist2">
1297
+ <p style="margin-top: 0;">
1298
+ -1 (infinite)
1299
+ </p>
1300
+ </td>
1301
+ </tr>
1302
+ <tr>
1303
+ <td class="hdlist1">
1304
+ Applicable socket types
1305
+ <br />
1306
+ </td>
1307
+ <td class="hdlist2">
1308
+ <p style="margin-top: 0;">
1309
+ all
1310
+ </p>
1311
+ </td>
1312
+ </tr>
1313
+ </table></div>
1314
+ </li>
1315
+ </ul></div>
1316
+ <h3 id="_zmq_reconnect_ivl_retrieve_reconnection_interval">ZMQ_RECONNECT_IVL: Retrieve reconnection interval</h3><div style="clear:left"></div>
1317
+ <div class="paragraph"><p>The <em>ZMQ_RECONNECT_IVL</em> option shall retrieve the initial reconnection interval
1318
+ for the specified <em>socket</em>. The reconnection interval is the period ØMQ shall
1319
+ wait between attempts to reconnect disconnected peers when using
1320
+ connection-oriented transports.</p></div>
1321
+ <div class="admonitionblock">
1322
+ <table><tr>
1323
+ <td class="icon">
1324
+ <div class="title">Note</div>
1325
+ </td>
1326
+ <td class="content">The reconnection interval may be randomized by ØMQ to prevent
1327
+ reconnection storms in topologies with a large number of peers per socket.</td>
1328
+ </tr></table>
1329
+ </div>
1330
+ <div class="hdlist"><table>
1331
+ <tr>
1332
+ <td class="hdlist1">
1333
+ Option value type
1334
+ <br />
1335
+ </td>
1336
+ <td class="hdlist2">
1337
+ <p style="margin-top: 0;">
1338
+ int
1339
+ </p>
1340
+ </td>
1341
+ </tr>
1342
+ <tr>
1343
+ <td class="hdlist1">
1344
+ Option value unit
1345
+ <br />
1346
+ </td>
1347
+ <td class="hdlist2">
1348
+ <p style="margin-top: 0;">
1349
+ milliseconds
1350
+ </p>
1351
+ </td>
1352
+ </tr>
1353
+ <tr>
1354
+ <td class="hdlist1">
1355
+ Default value
1356
+ <br />
1357
+ </td>
1358
+ <td class="hdlist2">
1359
+ <p style="margin-top: 0;">
1360
+ 100
1361
+ </p>
1362
+ </td>
1363
+ </tr>
1364
+ <tr>
1365
+ <td class="hdlist1">
1366
+ Applicable socket types
1367
+ <br />
1368
+ </td>
1369
+ <td class="hdlist2">
1370
+ <p style="margin-top: 0;">
1371
+ all, only for connection-oriented transports
1372
+ </p>
1373
+ </td>
1374
+ </tr>
1375
+ </table></div>
1376
+ <h3 id="_zmq_reconnect_ivl_max_retrieve_maximum_reconnection_interval">ZMQ_RECONNECT_IVL_MAX: Retrieve maximum reconnection interval</h3><div style="clear:left"></div>
1377
+ <div class="paragraph"><p>The <em>ZMQ_RECONNECT_IVL_MAX</em> option shall retrieve the maximum reconnection
1378
+ interval for the specified <em>socket</em>. This is the maximum period ØMQ shall wait
1379
+ between attempts to reconnect. On each reconnect attempt, the previous interval
1380
+ shall be doubled untill ZMQ_RECONNECT_IVL_MAX is reached. This allows for
1381
+ exponential backoff strategy. Default value means no exponential backoff is
1382
+ performed and reconnect interval calculations are only based on ZMQ_RECONNECT_IVL.</p></div>
1383
+ <div class="admonitionblock">
1384
+ <table><tr>
1385
+ <td class="icon">
1386
+ <div class="title">Note</div>
1387
+ </td>
1388
+ <td class="content">Values less than ZMQ_RECONNECT_IVL will be ignored.</td>
1389
+ </tr></table>
1390
+ </div>
1391
+ <div class="hdlist"><table>
1392
+ <tr>
1393
+ <td class="hdlist1">
1394
+ Option value type
1395
+ <br />
1396
+ </td>
1397
+ <td class="hdlist2">
1398
+ <p style="margin-top: 0;">
1399
+ int
1400
+ </p>
1401
+ </td>
1402
+ </tr>
1403
+ <tr>
1404
+ <td class="hdlist1">
1405
+ Option value unit
1406
+ <br />
1407
+ </td>
1408
+ <td class="hdlist2">
1409
+ <p style="margin-top: 0;">
1410
+ milliseconds
1411
+ </p>
1412
+ </td>
1413
+ </tr>
1414
+ <tr>
1415
+ <td class="hdlist1">
1416
+ Default value
1417
+ <br />
1418
+ </td>
1419
+ <td class="hdlist2">
1420
+ <p style="margin-top: 0;">
1421
+ 0 (only use ZMQ_RECONNECT_IVL)
1422
+ </p>
1423
+ </td>
1424
+ </tr>
1425
+ <tr>
1426
+ <td class="hdlist1">
1427
+ Applicable socket types
1428
+ <br />
1429
+ </td>
1430
+ <td class="hdlist2">
1431
+ <p style="margin-top: 0;">
1432
+ all, only for connection-oriented transport
1433
+ </p>
1434
+ </td>
1435
+ </tr>
1436
+ </table></div>
1437
+ <h3 id="_zmq_backlog_retrieve_maximum_length_of_the_queue_of_outstanding_connections">ZMQ_BACKLOG: Retrieve maximum length of the queue of outstanding connections</h3><div style="clear:left"></div>
1438
+ <div class="paragraph"><p>The <em>ZMQ_BACKLOG</em> option shall retrieve the maximum length of the queue of
1439
+ outstanding peer connections for the specified <em>socket</em>; this only applies to
1440
+ connection-oriented transports. For details refer to your operating system
1441
+ documentation for the <em>listen</em> function.</p></div>
1442
+ <div class="hdlist"><table>
1443
+ <tr>
1444
+ <td class="hdlist1">
1445
+ Option value type
1446
+ <br />
1447
+ </td>
1448
+ <td class="hdlist2">
1449
+ <p style="margin-top: 0;">
1450
+ int
1451
+ </p>
1452
+ </td>
1453
+ </tr>
1454
+ <tr>
1455
+ <td class="hdlist1">
1456
+ Option value unit
1457
+ <br />
1458
+ </td>
1459
+ <td class="hdlist2">
1460
+ <p style="margin-top: 0;">
1461
+ connections
1462
+ </p>
1463
+ </td>
1464
+ </tr>
1465
+ <tr>
1466
+ <td class="hdlist1">
1467
+ Default value
1468
+ <br />
1469
+ </td>
1470
+ <td class="hdlist2">
1471
+ <p style="margin-top: 0;">
1472
+ 100
1473
+ </p>
1474
+ </td>
1475
+ </tr>
1476
+ <tr>
1477
+ <td class="hdlist1">
1478
+ Applicable socket types
1479
+ <br />
1480
+ </td>
1481
+ <td class="hdlist2">
1482
+ <p style="margin-top: 0;">
1483
+ all, only for connection-oriented transports
1484
+ </p>
1485
+ </td>
1486
+ </tr>
1487
+ </table></div>
1488
+ <h3 id="_zmq_fd_retrieve_file_descriptor_associated_with_the_socket">ZMQ_FD: Retrieve file descriptor associated with the socket</h3><div style="clear:left"></div>
1489
+ <div class="paragraph"><p>The <em>ZMQ_FD</em> option shall retrieve the file descriptor associated with the
1490
+ specified <em>socket</em>. The returned file descriptor can be used to integrate the
1491
+ socket into an existing event loop; the ØMQ library shall signal any pending
1492
+ events on the socket in an <em>edge-triggered</em> fashion by making the file
1493
+ descriptor become ready for reading.</p></div>
1494
+ <div class="admonitionblock">
1495
+ <table><tr>
1496
+ <td class="icon">
1497
+ <div class="title">Note</div>
1498
+ </td>
1499
+ <td class="content">The ability to read from the returned file descriptor does not
1500
+ necessarily indicate that messages are available to be read from, or can be
1501
+ written to, the underlying socket; applications must retrieve the actual event
1502
+ state with a subsequent retrieval of the <em>ZMQ_EVENTS</em> option.</td>
1503
+ </tr></table>
1504
+ </div>
1505
+ <div class="admonitionblock">
1506
+ <table><tr>
1507
+ <td class="icon">
1508
+ <div class="title">Caution</div>
1509
+ </td>
1510
+ <td class="content">The returned file descriptor is intended for use with a <em>poll</em> or
1511
+ similar system call only. Applications must never attempt to read or write data
1512
+ to it directly, neither should they try to close it.</td>
1513
+ </tr></table>
1514
+ </div>
1515
+ <div class="hdlist"><table>
1516
+ <tr>
1517
+ <td class="hdlist1">
1518
+ Option value type
1519
+ <br />
1520
+ </td>
1521
+ <td class="hdlist2">
1522
+ <p style="margin-top: 0;">
1523
+ int on POSIX systems, SOCKET on Windows
1524
+ </p>
1525
+ </td>
1526
+ </tr>
1527
+ <tr>
1528
+ <td class="hdlist1">
1529
+ Option value unit
1530
+ <br />
1531
+ </td>
1532
+ <td class="hdlist2">
1533
+ <p style="margin-top: 0;">
1534
+ N/A
1535
+ </p>
1536
+ </td>
1537
+ </tr>
1538
+ <tr>
1539
+ <td class="hdlist1">
1540
+ Default value
1541
+ <br />
1542
+ </td>
1543
+ <td class="hdlist2">
1544
+ <p style="margin-top: 0;">
1545
+ N/A
1546
+ </p>
1547
+ </td>
1548
+ </tr>
1549
+ <tr>
1550
+ <td class="hdlist1">
1551
+ Applicable socket types
1552
+ <br />
1553
+ </td>
1554
+ <td class="hdlist2">
1555
+ <p style="margin-top: 0;">
1556
+ all
1557
+ </p>
1558
+ </td>
1559
+ </tr>
1560
+ </table></div>
1561
+ <h3 id="_zmq_events_retrieve_socket_event_state">ZMQ_EVENTS: Retrieve socket event state</h3><div style="clear:left"></div>
1562
+ <div class="paragraph"><p>The <em>ZMQ_EVENTS</em> option shall retrieve the event state for the specified
1563
+ <em>socket</em>. The returned value is a bit mask constructed by OR&#8217;ing a combination
1564
+ of the following event flags:</p></div>
1565
+ <div class="dlist"><dl>
1566
+ <dt class="hdlist1">
1567
+ <strong>ZMQ_POLLIN</strong>
1568
+ </dt>
1569
+ <dd>
1570
+ <p>
1571
+ Indicates that at least one message may be received from the specified socket
1572
+ without blocking.
1573
+ </p>
1574
+ </dd>
1575
+ <dt class="hdlist1">
1576
+ <strong>ZMQ_POLLOUT</strong>
1577
+ </dt>
1578
+ <dd>
1579
+ <p>
1580
+ Indicates that at least one message may be sent to the specified socket without
1581
+ blocking.
1582
+ </p>
1583
+ </dd>
1584
+ </dl></div>
1585
+ <div class="paragraph"><p>The combination of a file descriptor returned by the <em>ZMQ_FD</em> option being
1586
+ ready for reading but no actual events returned by a subsequent retrieval of
1587
+ the <em>ZMQ_EVENTS</em> option is valid; applications should simply ignore this case
1588
+ and restart their polling operation/event loop.</p></div>
1589
+ <div class="hdlist"><table>
1590
+ <tr>
1591
+ <td class="hdlist1">
1592
+ Option value type
1593
+ <br />
1594
+ </td>
1595
+ <td class="hdlist2">
1596
+ <p style="margin-top: 0;">
1597
+ uint32_t
1598
+ </p>
1599
+ </td>
1600
+ </tr>
1601
+ <tr>
1602
+ <td class="hdlist1">
1603
+ Option value unit
1604
+ <br />
1605
+ </td>
1606
+ <td class="hdlist2">
1607
+ <p style="margin-top: 0;">
1608
+ N/A (flags)
1609
+ </p>
1610
+ </td>
1611
+ </tr>
1612
+ <tr>
1613
+ <td class="hdlist1">
1614
+ Default value
1615
+ <br />
1616
+ </td>
1617
+ <td class="hdlist2">
1618
+ <p style="margin-top: 0;">
1619
+ N/A
1620
+ </p>
1621
+ </td>
1622
+ </tr>
1623
+ <tr>
1624
+ <td class="hdlist1">
1625
+ Applicable socket types
1626
+ <br />
1627
+ </td>
1628
+ <td class="hdlist2">
1629
+ <p style="margin-top: 0;">
1630
+ all
1631
+ </p>
1632
+ </td>
1633
+ </tr>
1634
+ </table></div>
1635
+ </div>
1636
+ <h2 id="_return_value">RETURN VALUE</h2>
1637
+ <div class="sectionbody">
1638
+ <div class="paragraph"><p>The <em>zmq_getsockopt()</em> function shall return zero if successful. Otherwise it
1639
+ shall return <tt>-1</tt> and set <em>errno</em> to one of the values defined below.</p></div>
1640
+ </div>
1641
+ <h2 id="_errors">ERRORS</h2>
1642
+ <div class="sectionbody">
1643
+ <div class="dlist"><dl>
1644
+ <dt class="hdlist1">
1645
+ <strong>EINVAL</strong>
1646
+ </dt>
1647
+ <dd>
1648
+ <p>
1649
+ The requested option <em>option_name</em> is unknown, or the requested <em>option_len</em> or
1650
+ <em>option_value</em> is invalid, or the size of the buffer pointed to by
1651
+ <em>option_value</em>, as specified by <em>option_len</em>, is insufficient for storing the
1652
+ option value.
1653
+ </p>
1654
+ </dd>
1655
+ <dt class="hdlist1">
1656
+ <strong>ETERM</strong>
1657
+ </dt>
1658
+ <dd>
1659
+ <p>
1660
+ The ØMQ <em>context</em> associated with the specified <em>socket</em> was terminated.
1661
+ </p>
1662
+ </dd>
1663
+ <dt class="hdlist1">
1664
+ <strong>ENOTSOCK</strong>
1665
+ </dt>
1666
+ <dd>
1667
+ <p>
1668
+ The provided <em>socket</em> was invalid.
1669
+ </p>
1670
+ </dd>
1671
+ <dt class="hdlist1">
1672
+ <strong>EINTR</strong>
1673
+ </dt>
1674
+ <dd>
1675
+ <p>
1676
+ The operation was interrupted by delivery of a signal.
1677
+ </p>
1678
+ </dd>
1679
+ </dl></div>
1680
+ </div>
1681
+ <h2 id="_example">EXAMPLE</h2>
1682
+ <div class="sectionbody">
1683
+ <div class="listingblock">
1684
+ <div class="title">Retrieving the high water mark</div>
1685
+ <div class="content">
1686
+ <pre><tt>/* Retrieve high water mark into hwm */
1687
+ int64_t hwm;
1688
+ size_t hwm_size = sizeof (hwm);
1689
+ rc = zmq_getsockopt (socket, ZMQ_HWM, &amp;hwm, &amp;hwm_size);
1690
+ assert (rc == 0);</tt></pre>
1691
+ </div></div>
1692
+ </div>
1693
+ <h2 id="_see_also">SEE ALSO</h2>
1694
+ <div class="sectionbody">
1695
+ <div class="paragraph"><p><a href="zmq_setsockopt.html">zmq_setsockopt(3)</a>
1696
+ <a href="zmq_socket.html">zmq_socket(3)</a>
1697
+ <a href="zmq.html">zmq(7)</a></p></div>
1698
+ </div>
1699
+ <h2 id="_authors">AUTHORS</h2>
1700
+ <div class="sectionbody">
1701
+ <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
1702
+ Martin Lucina &lt;<a href="mailto:mato@kotelna.sk">mato@kotelna.sk</a>&gt;.</p></div>
1703
+ </div>
1704
+ </div>
1705
+ <div id="footnotes"><hr /></div>
1706
+ <div id="footer">
1707
+ <div id="footer-text">
1708
+ ØMQ 2.1.6<br />
1709
+ Last updated 2011-05-07 07:13:32 CEST
1710
+ </div>
1711
+ </div>
1712
+ </body>
1713
+ </html>