rbczmq 1.6.2 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -3
- data/.gitmodules +6 -0
- data/.travis.yml +5 -1
- data/CHANGELOG.rdoc +15 -0
- data/Gemfile.lock +2 -2
- data/README.rdoc +5 -2
- data/Rakefile +8 -3
- data/ext/czmq/.gitignore +52 -0
- data/ext/czmq/.travis.yml +18 -0
- data/ext/czmq/AUTHORS +9 -0
- data/ext/czmq/COPYING +674 -0
- data/ext/czmq/COPYING.LESSER +178 -0
- data/ext/czmq/ChangeLog +0 -0
- data/ext/czmq/Makefile.am +22 -0
- data/ext/czmq/NEWS +263 -0
- data/ext/czmq/README +0 -0
- data/ext/czmq/README.md +1122 -0
- data/ext/czmq/README.txt +327 -0
- data/ext/czmq/autogen.sh +46 -0
- data/ext/czmq/builds/android/Android.mk +35 -0
- data/ext/czmq/builds/android/Application.mk +1 -0
- data/ext/czmq/builds/android/build.sh +59 -0
- data/ext/czmq/builds/android/clean.sh +26 -0
- data/ext/czmq/builds/mingw32/Makefile.mingw32 +38 -0
- data/ext/czmq/builds/mingw32/platform.h +0 -0
- data/ext/czmq/builds/msvc/.gitignore +18 -0
- data/ext/czmq/builds/msvc/README.txt +17 -0
- data/ext/czmq/builds/msvc/czmq.sln +69 -0
- data/ext/czmq/builds/msvc/czmq.vcproj +2246 -0
- data/ext/czmq/builds/msvc/czmq.vcxproj +329 -0
- data/ext/czmq/builds/msvc/czmq.vcxproj.filters +117 -0
- data/ext/czmq/builds/msvc/czmq11.sln +36 -0
- data/ext/czmq/builds/msvc/czmq_selftest.vcproj +840 -0
- data/ext/czmq/builds/msvc/czmq_selftest.vcxproj +189 -0
- data/ext/czmq/builds/msvc/czmq_selftest.vcxproj.filters +14 -0
- data/ext/czmq/c +520 -0
- data/ext/czmq/configure.ac +229 -0
- data/ext/czmq/doc/Makefile.am +49 -0
- data/ext/czmq/doc/asciidoc.conf +57 -0
- data/ext/czmq/doc/czmq.txt +334 -0
- data/ext/czmq/doc/mkman +100 -0
- data/ext/czmq/doc/mksite +65 -0
- data/ext/czmq/doc/wdput +43 -0
- data/ext/czmq/doc/xml2wd.pl +242 -0
- data/ext/czmq/doc/zbeacon.txt +173 -0
- data/ext/czmq/doc/zclock.txt +51 -0
- data/ext/czmq/doc/zconfig.txt +92 -0
- data/ext/czmq/doc/zctx.txt +111 -0
- data/ext/czmq/doc/zfile.txt +77 -0
- data/ext/czmq/doc/zframe.txt +222 -0
- data/ext/czmq/doc/zhash.txt +225 -0
- data/ext/czmq/doc/zlist.txt +176 -0
- data/ext/czmq/doc/zloop.txt +106 -0
- data/ext/czmq/doc/zmsg.txt +315 -0
- data/ext/czmq/doc/zmutex.txt +54 -0
- data/ext/czmq/doc/zsocket.txt +110 -0
- data/ext/czmq/doc/zsockopt.txt +528 -0
- data/ext/czmq/doc/zstr.txt +80 -0
- data/ext/czmq/doc/zsys.txt +44 -0
- data/ext/czmq/doc/zthread.txt +126 -0
- data/ext/czmq/doc/ztree.txt +236 -0
- data/ext/czmq/images/README_1.png +0 -0
- data/ext/czmq/images/README_2.png +0 -0
- data/ext/czmq/include/czmq.h +64 -0
- data/ext/czmq/include/czmq_prelude.h +504 -0
- data/ext/czmq/include/zbeacon.h +91 -0
- data/ext/czmq/include/zclock.h +56 -0
- data/ext/czmq/include/zconfig.h +117 -0
- data/ext/czmq/include/zctx.h +96 -0
- data/ext/czmq/include/zfile.h +82 -0
- data/ext/czmq/include/zframe.h +145 -0
- data/ext/czmq/include/zhash.h +127 -0
- data/ext/czmq/include/zlist.h +113 -0
- data/ext/czmq/include/zloop.h +98 -0
- data/ext/czmq/include/zmsg.h +165 -0
- data/ext/czmq/include/zmutex.h +62 -0
- data/ext/czmq/include/zsocket.h +104 -0
- data/ext/czmq/include/zsockopt.h +249 -0
- data/ext/czmq/include/zstr.h +69 -0
- data/ext/czmq/include/zsys.h +66 -0
- data/ext/czmq/include/zthread.h +62 -0
- data/ext/czmq/include/ztree.h +133 -0
- data/ext/czmq/mkdoc +14 -0
- data/ext/czmq/model/generate +2 -0
- data/ext/czmq/model/sockopts.xml +101 -0
- data/ext/czmq/notes.txt +21 -0
- data/ext/czmq/scripts/sockopts.gsl +325 -0
- data/ext/czmq/src/Makefile.am +61 -0
- data/ext/czmq/src/czmq_selftest.c +60 -0
- data/ext/czmq/src/libczmq.pc.in +11 -0
- data/ext/czmq/src/selftest +7 -0
- data/ext/czmq/src/selftest.cfg +5 -0
- data/ext/czmq/src/valgrind.supp +14 -0
- data/ext/czmq/src/vg +2 -0
- data/ext/czmq/src/zbeacon.c +787 -0
- data/ext/czmq/src/zclock.c +143 -0
- data/ext/czmq/src/zconfig.c +691 -0
- data/ext/czmq/src/zctx.c +287 -0
- data/ext/czmq/src/zfile.c +237 -0
- data/ext/czmq/src/zframe.c +551 -0
- data/ext/czmq/src/zhash.c +664 -0
- data/ext/czmq/src/zlist.c +459 -0
- data/ext/czmq/src/zloop.c +496 -0
- data/ext/czmq/src/zmsg.c +854 -0
- data/ext/czmq/src/zmutex.c +134 -0
- data/ext/czmq/src/zsocket.c +313 -0
- data/ext/czmq/src/zsockopt.c +1756 -0
- data/ext/czmq/src/zstr.c +297 -0
- data/ext/czmq/src/zsys.c +136 -0
- data/ext/czmq/src/zthread.c +269 -0
- data/ext/czmq/src/ztree.c +888 -0
- data/ext/czmq/version.sh +21 -0
- data/ext/rbczmq/extconf.rb +1 -18
- data/ext/rbczmq/poller.c +4 -1
- data/ext/rbczmq/socket.c +28 -5
- data/ext/rbczmq/socket.h +1 -0
- data/ext/zeromq/AUTHORS +110 -0
- data/ext/zeromq/CMakeLists.txt +392 -0
- data/ext/zeromq/COPYING +674 -0
- data/ext/zeromq/COPYING.LESSER +179 -0
- data/ext/zeromq/INSTALL +246 -0
- data/ext/zeromq/MAINTAINERS +56 -0
- data/ext/zeromq/Makefile.am +40 -0
- data/ext/zeromq/NEWS +333 -0
- data/ext/zeromq/README +39 -0
- data/ext/zeromq/acinclude.m4 +930 -0
- data/ext/zeromq/autogen.sh +45 -0
- data/ext/zeromq/branding.bmp +0 -0
- data/ext/zeromq/builds/msvc/Makefile.am +33 -0
- data/ext/zeromq/builds/msvc/c_local_lat/c_local_lat.vcproj +176 -0
- data/ext/zeromq/builds/msvc/c_local_lat/c_local_lat.vcxproj +87 -0
- data/ext/zeromq/builds/msvc/c_local_thr/c_local_thr.vcproj +176 -0
- data/ext/zeromq/builds/msvc/c_local_thr/c_local_thr.vcxproj +87 -0
- data/ext/zeromq/builds/msvc/c_remote_lat/c_remote_lat.vcproj +176 -0
- data/ext/zeromq/builds/msvc/c_remote_lat/c_remote_lat.vcxproj +87 -0
- data/ext/zeromq/builds/msvc/c_remote_thr/c_remote_thr.vcproj +176 -0
- data/ext/zeromq/builds/msvc/c_remote_thr/c_remote_thr.vcxproj +87 -0
- data/ext/zeromq/builds/msvc/errno.cpp +32 -0
- data/ext/zeromq/builds/msvc/errno.hpp +56 -0
- data/ext/zeromq/builds/msvc/inproc_lat/inproc_lat.vcproj +174 -0
- data/ext/zeromq/builds/msvc/inproc_lat/inproc_lat.vcxproj +86 -0
- data/ext/zeromq/builds/msvc/inproc_thr/inproc_thr.vcproj +174 -0
- data/ext/zeromq/builds/msvc/inproc_thr/inproc_thr.vcxproj +86 -0
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcproj +804 -0
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcxproj +252 -0
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcxproj.filters +431 -0
- data/ext/zeromq/builds/msvc/msvc.sln +89 -0
- data/ext/zeromq/builds/msvc/msvc10.sln +116 -0
- data/ext/zeromq/builds/msvc/platform.hpp +32 -0
- data/ext/zeromq/builds/msvc/properties/Common.props +21 -0
- data/ext/zeromq/builds/msvc/properties/Debug.props +19 -0
- data/ext/zeromq/builds/msvc/properties/Dynamic.props +20 -0
- data/ext/zeromq/builds/msvc/properties/Executable.props +19 -0
- data/ext/zeromq/builds/msvc/properties/Precompiled.props +14 -0
- data/ext/zeromq/builds/msvc/properties/Release.props +22 -0
- data/ext/zeromq/builds/msvc/properties/Win32.props +12 -0
- data/ext/zeromq/builds/msvc/properties/Win32_Release.props +17 -0
- data/ext/zeromq/builds/msvc/properties/WithOpenPGM.props +12 -0
- data/ext/zeromq/builds/msvc/properties/ZeroMQ.props +23 -0
- data/ext/zeromq/builds/msvc/properties/x64.props +12 -0
- data/ext/zeromq/builds/redhat/zeromq.spec.in +160 -0
- data/ext/zeromq/builds/valgrind/valgrind.supp +14 -0
- data/ext/zeromq/builds/valgrind/vg +1 -0
- data/ext/zeromq/cmake/Modules/TestZMQVersion.cmake +35 -0
- data/ext/zeromq/cmake/Modules/zmq_version.cpp +31 -0
- data/ext/zeromq/cmake/NSIS.template32.in +952 -0
- data/ext/zeromq/cmake/NSIS.template64.in +960 -0
- data/ext/zeromq/configure.in +428 -0
- data/ext/zeromq/doc/Makefile.am +51 -0
- data/ext/zeromq/doc/asciidoc.conf +56 -0
- data/ext/zeromq/doc/zmq.txt +233 -0
- data/ext/zeromq/doc/zmq_bind.txt +102 -0
- data/ext/zeromq/doc/zmq_close.txt +52 -0
- data/ext/zeromq/doc/zmq_connect.txt +98 -0
- data/ext/zeromq/doc/zmq_ctx_destroy.txt +66 -0
- data/ext/zeromq/doc/zmq_ctx_get.txt +67 -0
- data/ext/zeromq/doc/zmq_ctx_new.txt +49 -0
- data/ext/zeromq/doc/zmq_ctx_set.txt +75 -0
- data/ext/zeromq/doc/zmq_disconnect.txt +67 -0
- data/ext/zeromq/doc/zmq_epgm.txt +162 -0
- data/ext/zeromq/doc/zmq_errno.txt +50 -0
- data/ext/zeromq/doc/zmq_getsockopt.txt +516 -0
- data/ext/zeromq/doc/zmq_init.txt +52 -0
- data/ext/zeromq/doc/zmq_inproc.txt +85 -0
- data/ext/zeromq/doc/zmq_ipc.txt +85 -0
- data/ext/zeromq/doc/zmq_msg_close.txt +55 -0
- data/ext/zeromq/doc/zmq_msg_copy.txt +57 -0
- data/ext/zeromq/doc/zmq_msg_data.txt +48 -0
- data/ext/zeromq/doc/zmq_msg_get.txt +72 -0
- data/ext/zeromq/doc/zmq_msg_init.txt +65 -0
- data/ext/zeromq/doc/zmq_msg_init_data.txt +85 -0
- data/ext/zeromq/doc/zmq_msg_init_size.txt +58 -0
- data/ext/zeromq/doc/zmq_msg_more.txt +63 -0
- data/ext/zeromq/doc/zmq_msg_move.txt +52 -0
- data/ext/zeromq/doc/zmq_msg_recv.txt +125 -0
- data/ext/zeromq/doc/zmq_msg_send.txt +122 -0
- data/ext/zeromq/doc/zmq_msg_set.txt +45 -0
- data/ext/zeromq/doc/zmq_msg_size.txt +48 -0
- data/ext/zeromq/doc/zmq_pgm.txt +162 -0
- data/ext/zeromq/doc/zmq_poll.txt +132 -0
- data/ext/zeromq/doc/zmq_proxy.txt +97 -0
- data/ext/zeromq/doc/zmq_recv.txt +93 -0
- data/ext/zeromq/doc/zmq_recvmsg.txt +123 -0
- data/ext/zeromq/doc/zmq_send.txt +100 -0
- data/ext/zeromq/doc/zmq_sendmsg.txt +119 -0
- data/ext/zeromq/doc/zmq_setsockopt.txt +523 -0
- data/ext/zeromq/doc/zmq_socket.txt +369 -0
- data/ext/zeromq/doc/zmq_socket_monitor.txt +288 -0
- data/ext/zeromq/doc/zmq_strerror.txt +55 -0
- data/ext/zeromq/doc/zmq_tcp.txt +101 -0
- data/ext/zeromq/doc/zmq_term.txt +66 -0
- data/ext/zeromq/doc/zmq_unbind.txt +65 -0
- data/ext/zeromq/doc/zmq_version.txt +53 -0
- data/ext/zeromq/foreign/openpgm/Makefile.am +8 -0
- data/ext/zeromq/foreign/openpgm/libpgm-5.1.118~dfsg.tar.gz +0 -0
- data/ext/zeromq/include/zmq.h +402 -0
- data/ext/zeromq/include/zmq_utils.h +64 -0
- data/ext/zeromq/installer.ico +0 -0
- data/ext/zeromq/perf/Makefile.am +22 -0
- data/ext/zeromq/perf/inproc_lat.cpp +233 -0
- data/ext/zeromq/perf/inproc_thr.cpp +241 -0
- data/ext/zeromq/perf/local_lat.cpp +109 -0
- data/ext/zeromq/perf/local_thr.cpp +133 -0
- data/ext/zeromq/perf/remote_lat.cpp +122 -0
- data/ext/zeromq/perf/remote_thr.cpp +105 -0
- data/ext/zeromq/src/Makefile.am +171 -0
- data/ext/zeromq/src/address.cpp +78 -0
- data/ext/zeromq/src/address.hpp +52 -0
- data/ext/zeromq/src/array.hpp +155 -0
- data/ext/zeromq/src/atomic_counter.hpp +197 -0
- data/ext/zeromq/src/atomic_ptr.hpp +196 -0
- data/ext/zeromq/src/blob.hpp +129 -0
- data/ext/zeromq/src/clock.cpp +147 -0
- data/ext/zeromq/src/clock.hpp +60 -0
- data/ext/zeromq/src/command.hpp +154 -0
- data/ext/zeromq/src/config.hpp +89 -0
- data/ext/zeromq/src/ctx.cpp +352 -0
- data/ext/zeromq/src/ctx.hpp +173 -0
- data/ext/zeromq/src/dealer.cpp +133 -0
- data/ext/zeromq/src/dealer.hpp +92 -0
- data/ext/zeromq/src/decoder.cpp +166 -0
- data/ext/zeromq/src/decoder.hpp +248 -0
- data/ext/zeromq/src/devpoll.cpp +190 -0
- data/ext/zeromq/src/devpoll.hpp +105 -0
- data/ext/zeromq/src/dist.cpp +194 -0
- data/ext/zeromq/src/dist.hpp +105 -0
- data/ext/zeromq/src/encoder.cpp +102 -0
- data/ext/zeromq/src/encoder.hpp +200 -0
- data/ext/zeromq/src/epoll.cpp +178 -0
- data/ext/zeromq/src/epoll.hpp +101 -0
- data/ext/zeromq/src/err.cpp +291 -0
- data/ext/zeromq/src/err.hpp +155 -0
- data/ext/zeromq/src/fd.hpp +45 -0
- data/ext/zeromq/src/fq.cpp +141 -0
- data/ext/zeromq/src/fq.hpp +74 -0
- data/ext/zeromq/src/i_decoder.hpp +49 -0
- data/ext/zeromq/src/i_encoder.hpp +55 -0
- data/ext/zeromq/src/i_engine.hpp +55 -0
- data/ext/zeromq/src/i_msg_sink.hpp +43 -0
- data/ext/zeromq/src/i_msg_source.hpp +44 -0
- data/ext/zeromq/src/i_poll_events.hpp +47 -0
- data/ext/zeromq/src/io_object.cpp +108 -0
- data/ext/zeromq/src/io_object.hpp +81 -0
- data/ext/zeromq/src/io_thread.cpp +104 -0
- data/ext/zeromq/src/io_thread.hpp +91 -0
- data/ext/zeromq/src/ip.cpp +109 -0
- data/ext/zeromq/src/ip.hpp +41 -0
- data/ext/zeromq/src/ipc_address.cpp +84 -0
- data/ext/zeromq/src/ipc_address.hpp +67 -0
- data/ext/zeromq/src/ipc_connecter.cpp +265 -0
- data/ext/zeromq/src/ipc_connecter.hpp +128 -0
- data/ext/zeromq/src/ipc_listener.cpp +206 -0
- data/ext/zeromq/src/ipc_listener.hpp +99 -0
- data/ext/zeromq/src/kqueue.cpp +201 -0
- data/ext/zeromq/src/kqueue.hpp +107 -0
- data/ext/zeromq/src/lb.cpp +148 -0
- data/ext/zeromq/src/lb.hpp +73 -0
- data/ext/zeromq/src/libzmq.pc.in +10 -0
- data/ext/zeromq/src/likely.hpp +33 -0
- data/ext/zeromq/src/mailbox.cpp +87 -0
- data/ext/zeromq/src/mailbox.hpp +75 -0
- data/ext/zeromq/src/msg.cpp +299 -0
- data/ext/zeromq/src/msg.hpp +148 -0
- data/ext/zeromq/src/mtrie.cpp +428 -0
- data/ext/zeromq/src/mtrie.hpp +93 -0
- data/ext/zeromq/src/mutex.hpp +118 -0
- data/ext/zeromq/src/object.cpp +393 -0
- data/ext/zeromq/src/object.hpp +134 -0
- data/ext/zeromq/src/options.cpp +562 -0
- data/ext/zeromq/src/options.hpp +135 -0
- data/ext/zeromq/src/own.cpp +206 -0
- data/ext/zeromq/src/own.hpp +145 -0
- data/ext/zeromq/src/pair.cpp +136 -0
- data/ext/zeromq/src/pair.hpp +79 -0
- data/ext/zeromq/src/pgm_receiver.cpp +283 -0
- data/ext/zeromq/src/pgm_receiver.hpp +141 -0
- data/ext/zeromq/src/pgm_sender.cpp +218 -0
- data/ext/zeromq/src/pgm_sender.hpp +113 -0
- data/ext/zeromq/src/pgm_socket.cpp +706 -0
- data/ext/zeromq/src/pgm_socket.hpp +124 -0
- data/ext/zeromq/src/pipe.cpp +447 -0
- data/ext/zeromq/src/pipe.hpp +207 -0
- data/ext/zeromq/src/poll.cpp +176 -0
- data/ext/zeromq/src/poll.hpp +105 -0
- data/ext/zeromq/src/poller.hpp +82 -0
- data/ext/zeromq/src/poller_base.cpp +99 -0
- data/ext/zeromq/src/poller_base.hpp +86 -0
- data/ext/zeromq/src/precompiled.cpp +21 -0
- data/ext/zeromq/src/precompiled.hpp +47 -0
- data/ext/zeromq/src/proxy.cpp +150 -0
- data/ext/zeromq/src/proxy.hpp +32 -0
- data/ext/zeromq/src/pub.cpp +57 -0
- data/ext/zeromq/src/pub.hpp +69 -0
- data/ext/zeromq/src/pull.cpp +79 -0
- data/ext/zeromq/src/pull.hpp +81 -0
- data/ext/zeromq/src/push.cpp +76 -0
- data/ext/zeromq/src/push.hpp +80 -0
- data/ext/zeromq/src/random.cpp +52 -0
- data/ext/zeromq/src/random.hpp +37 -0
- data/ext/zeromq/src/reaper.cpp +117 -0
- data/ext/zeromq/src/reaper.hpp +80 -0
- data/ext/zeromq/src/rep.cpp +137 -0
- data/ext/zeromq/src/rep.hpp +80 -0
- data/ext/zeromq/src/req.cpp +185 -0
- data/ext/zeromq/src/req.hpp +91 -0
- data/ext/zeromq/src/router.cpp +364 -0
- data/ext/zeromq/src/router.hpp +138 -0
- data/ext/zeromq/src/select.cpp +216 -0
- data/ext/zeromq/src/select.hpp +126 -0
- data/ext/zeromq/src/session_base.cpp +503 -0
- data/ext/zeromq/src/session_base.hpp +156 -0
- data/ext/zeromq/src/signaler.cpp +406 -0
- data/ext/zeromq/src/signaler.hpp +63 -0
- data/ext/zeromq/src/socket_base.cpp +1236 -0
- data/ext/zeromq/src/socket_base.hpp +255 -0
- data/ext/zeromq/src/stdint.hpp +63 -0
- data/ext/zeromq/src/stream_engine.cpp +594 -0
- data/ext/zeromq/src/stream_engine.hpp +149 -0
- data/ext/zeromq/src/sub.cpp +93 -0
- data/ext/zeromq/src/sub.hpp +71 -0
- data/ext/zeromq/src/tcp.cpp +131 -0
- data/ext/zeromq/src/tcp.hpp +38 -0
- data/ext/zeromq/src/tcp_address.cpp +613 -0
- data/ext/zeromq/src/tcp_address.hpp +100 -0
- data/ext/zeromq/src/tcp_connecter.cpp +319 -0
- data/ext/zeromq/src/tcp_connecter.hpp +123 -0
- data/ext/zeromq/src/tcp_listener.cpp +293 -0
- data/ext/zeromq/src/tcp_listener.hpp +91 -0
- data/ext/zeromq/src/thread.cpp +107 -0
- data/ext/zeromq/src/thread.hpp +79 -0
- data/ext/zeromq/src/trie.cpp +337 -0
- data/ext/zeromq/src/trie.hpp +79 -0
- data/ext/zeromq/src/v1_decoder.cpp +162 -0
- data/ext/zeromq/src/v1_decoder.hpp +68 -0
- data/ext/zeromq/src/v1_encoder.cpp +103 -0
- data/ext/zeromq/src/v1_encoder.hpp +60 -0
- data/ext/zeromq/src/v1_protocol.hpp +43 -0
- data/ext/zeromq/src/version.rc.in +93 -0
- data/ext/zeromq/src/windows.hpp +181 -0
- data/ext/zeromq/src/wire.hpp +99 -0
- data/ext/zeromq/src/xpub.cpp +200 -0
- data/ext/zeromq/src/xpub.hpp +110 -0
- data/ext/zeromq/src/xsub.cpp +242 -0
- data/ext/zeromq/src/xsub.hpp +108 -0
- data/ext/zeromq/src/ypipe.hpp +210 -0
- data/ext/zeromq/src/yqueue.hpp +199 -0
- data/ext/zeromq/src/zmq.cpp +1058 -0
- data/ext/zeromq/src/zmq_utils.cpp +61 -0
- data/ext/zeromq/tests/Makefile.am +55 -0
- data/ext/zeromq/tests/test_connect_delay.cpp +260 -0
- data/ext/zeromq/tests/test_connect_resolve.cpp +54 -0
- data/ext/zeromq/tests/test_disconnect_inproc.cpp +120 -0
- data/ext/zeromq/tests/test_hwm.cpp +83 -0
- data/ext/zeromq/tests/test_invalid_rep.cpp +92 -0
- data/ext/zeromq/tests/test_last_endpoint.cpp +60 -0
- data/ext/zeromq/tests/test_monitor.cpp +289 -0
- data/ext/zeromq/tests/test_msg_flags.cpp +78 -0
- data/ext/zeromq/tests/test_pair_inproc.cpp +53 -0
- data/ext/zeromq/tests/test_pair_ipc.cpp +53 -0
- data/ext/zeromq/tests/test_pair_tcp.cpp +54 -0
- data/ext/zeromq/tests/test_reqrep_device.cpp +143 -0
- data/ext/zeromq/tests/test_reqrep_inproc.cpp +53 -0
- data/ext/zeromq/tests/test_reqrep_ipc.cpp +53 -0
- data/ext/zeromq/tests/test_reqrep_tcp.cpp +54 -0
- data/ext/zeromq/tests/test_router_mandatory.cpp +62 -0
- data/ext/zeromq/tests/test_shutdown_stress.cpp +93 -0
- data/ext/zeromq/tests/test_sub_forward.cpp +99 -0
- data/ext/zeromq/tests/test_term_endpoint.cpp +118 -0
- data/ext/zeromq/tests/test_timeo.cpp +119 -0
- data/ext/zeromq/tests/testutil.hpp +77 -0
- data/ext/zeromq/version.sh +21 -0
- data/lib/zmq/version.rb +1 -1
- data/rbczmq.gemspec +16 -3
- data/test/test_socket.rb +13 -1
- metadata +398 -9
- checksums.yaml +0 -15
- data/ext/czmq-1.4.1.tar.gz +0 -0
- data/ext/zeromq-3.2.3.tar.gz +0 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
zmq_msg_init(3)
|
2
|
+
===============
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_init - initialise empty 0MQ message
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*int zmq_msg_init (zmq_msg_t '*msg');*
|
13
|
+
|
14
|
+
|
15
|
+
DESCRIPTION
|
16
|
+
-----------
|
17
|
+
The _zmq_msg_init()_ function shall initialise the message object referenced by
|
18
|
+
'msg' to represent an empty message. This function is most useful when called
|
19
|
+
before receiving a message with _zmq_recv()_.
|
20
|
+
|
21
|
+
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
22
|
+
_zmq_msg_ family of functions.
|
23
|
+
|
24
|
+
CAUTION: The functions _zmq_msg_init()_, _zmq_msg_init_data()_ and
|
25
|
+
_zmq_msg_init_size()_ are mutually exclusive. Never initialize the same
|
26
|
+
'zmq_msg_t' twice.
|
27
|
+
|
28
|
+
|
29
|
+
RETURN VALUE
|
30
|
+
------------
|
31
|
+
The _zmq_msg_init()_ function shall return zero if successful. Otherwise it
|
32
|
+
shall return `-1` and set 'errno' to one of the values defined below.
|
33
|
+
|
34
|
+
|
35
|
+
ERRORS
|
36
|
+
------
|
37
|
+
No errors are defined.
|
38
|
+
|
39
|
+
|
40
|
+
EXAMPLE
|
41
|
+
-------
|
42
|
+
.Receiving a message from a socket
|
43
|
+
----
|
44
|
+
zmq_msg_t msg;
|
45
|
+
rc = zmq_msg_init (&msg);
|
46
|
+
assert (rc == 0);
|
47
|
+
rc = zmq_recv (socket, &msg, 0);
|
48
|
+
assert (rc == 0);
|
49
|
+
----
|
50
|
+
|
51
|
+
|
52
|
+
SEE ALSO
|
53
|
+
--------
|
54
|
+
linkzmq:zmq_msg_init_size[3]
|
55
|
+
linkzmq:zmq_msg_init_data[3]
|
56
|
+
linkzmq:zmq_msg_close[3]
|
57
|
+
linkzmq:zmq_msg_data[3]
|
58
|
+
linkzmq:zmq_msg_size[3]
|
59
|
+
linkzmq:zmq[7]
|
60
|
+
|
61
|
+
|
62
|
+
AUTHORS
|
63
|
+
-------
|
64
|
+
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
|
65
|
+
Martin Lucina <mato@kotelna.sk>.
|
@@ -0,0 +1,85 @@
|
|
1
|
+
zmq_msg_init_data(3)
|
2
|
+
====================
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_init_data - initialise 0MQ message from a supplied buffer
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*typedef void (zmq_free_fn) (void '*data', void '*hint');*
|
13
|
+
|
14
|
+
*int zmq_msg_init_data (zmq_msg_t '*msg', void '*data', size_t 'size', zmq_free_fn '*ffn', void '*hint');*
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTION
|
18
|
+
-----------
|
19
|
+
The _zmq_msg_init_data()_ function shall initialise the message object
|
20
|
+
referenced by 'msg' to represent the content referenced by the buffer located
|
21
|
+
at address 'data', 'size' bytes long. No copy of 'data' shall be performed and
|
22
|
+
0MQ shall take ownership of the supplied buffer.
|
23
|
+
|
24
|
+
If provided, the deallocation function 'ffn' shall be called once the data
|
25
|
+
buffer is no longer required by 0MQ, with the 'data' and 'hint' arguments
|
26
|
+
supplied to _zmq_msg_init_data()_.
|
27
|
+
|
28
|
+
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
29
|
+
_zmq_msg_ family of functions.
|
30
|
+
|
31
|
+
CAUTION: The deallocation function 'ffn' needs to be thread-safe, since it
|
32
|
+
will be called from an arbitrary thread.
|
33
|
+
|
34
|
+
CAUTION: The functions _zmq_msg_init()_, _zmq_msg_init_data()_ and
|
35
|
+
_zmq_msg_init_size()_ are mutually exclusive. Never initialize the same
|
36
|
+
'zmq_msg_t' twice.
|
37
|
+
|
38
|
+
|
39
|
+
RETURN VALUE
|
40
|
+
------------
|
41
|
+
The _zmq_msg_init_data()_ function shall return zero if successful. Otherwise
|
42
|
+
it shall return `-1` and set 'errno' to one of the values defined below.
|
43
|
+
|
44
|
+
|
45
|
+
ERRORS
|
46
|
+
------
|
47
|
+
*ENOMEM*::
|
48
|
+
Insufficient storage space is available.
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
EXAMPLE
|
53
|
+
-------
|
54
|
+
.Initialising a message from a supplied buffer
|
55
|
+
----
|
56
|
+
void my_free (void *data, void *hint)
|
57
|
+
{
|
58
|
+
free (data);
|
59
|
+
}
|
60
|
+
|
61
|
+
/* ... */
|
62
|
+
|
63
|
+
void *data = malloc (6);
|
64
|
+
assert (data);
|
65
|
+
memcpy (data, "ABCDEF", 6);
|
66
|
+
zmq_msg_t msg;
|
67
|
+
rc = zmq_msg_init_data (&msg, data, 6, my_free, NULL);
|
68
|
+
assert (rc == 0);
|
69
|
+
----
|
70
|
+
|
71
|
+
|
72
|
+
SEE ALSO
|
73
|
+
--------
|
74
|
+
linkzmq:zmq_msg_init_size[3]
|
75
|
+
linkzmq:zmq_msg_init[3]
|
76
|
+
linkzmq:zmq_msg_close[3]
|
77
|
+
linkzmq:zmq_msg_data[3]
|
78
|
+
linkzmq:zmq_msg_size[3]
|
79
|
+
linkzmq:zmq[7]
|
80
|
+
|
81
|
+
|
82
|
+
AUTHORS
|
83
|
+
-------
|
84
|
+
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
|
85
|
+
Martin Lucina <mato@kotelna.sk>.
|
@@ -0,0 +1,58 @@
|
|
1
|
+
zmq_msg_init_size(3)
|
2
|
+
====================
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_init_size - initialise 0MQ message of a specified size
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*int zmq_msg_init_size (zmq_msg_t '*msg', size_t 'size');*
|
13
|
+
|
14
|
+
|
15
|
+
DESCRIPTION
|
16
|
+
-----------
|
17
|
+
The _zmq_msg_init_size()_ function shall allocate any resources required to
|
18
|
+
store a message 'size' bytes long and initialise the message object referenced
|
19
|
+
by 'msg' to represent the newly allocated message.
|
20
|
+
|
21
|
+
The implementation shall choose whether to store message content on the stack
|
22
|
+
(small messages) or on the heap (large messages). For performance reasons
|
23
|
+
_zmq_msg_init_size()_ shall not clear the message data.
|
24
|
+
|
25
|
+
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
26
|
+
_zmq_msg_ family of functions.
|
27
|
+
|
28
|
+
CAUTION: The functions _zmq_msg_init()_, _zmq_msg_init_data()_ and
|
29
|
+
_zmq_msg_init_size()_ are mutually exclusive. Never initialize the same
|
30
|
+
'zmq_msg_t' twice.
|
31
|
+
|
32
|
+
|
33
|
+
RETURN VALUE
|
34
|
+
------------
|
35
|
+
The _zmq_msg_init_size()_ function shall return zero if successful. Otherwise
|
36
|
+
it shall return `-1` and set 'errno' to one of the values defined below.
|
37
|
+
|
38
|
+
|
39
|
+
ERRORS
|
40
|
+
------
|
41
|
+
*ENOMEM*::
|
42
|
+
Insufficient storage space is available.
|
43
|
+
|
44
|
+
|
45
|
+
SEE ALSO
|
46
|
+
--------
|
47
|
+
linkzmq:zmq_msg_init_data[3]
|
48
|
+
linkzmq:zmq_msg_init[3]
|
49
|
+
linkzmq:zmq_msg_close[3]
|
50
|
+
linkzmq:zmq_msg_data[3]
|
51
|
+
linkzmq:zmq_msg_size[3]
|
52
|
+
linkzmq:zmq[7]
|
53
|
+
|
54
|
+
|
55
|
+
AUTHORS
|
56
|
+
-------
|
57
|
+
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
|
58
|
+
Martin Lucina <mato@kotelna.sk>.
|
@@ -0,0 +1,63 @@
|
|
1
|
+
zmq_msg_more(3)
|
2
|
+
===============
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_more - indicate if there are more message parts to receive
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*int zmq_msg_more (zmq_msg_t '*message');*
|
13
|
+
|
14
|
+
|
15
|
+
DESCRIPTION
|
16
|
+
-----------
|
17
|
+
The _zmq_msg_more()_ function indicates whether this is part of a multi-part
|
18
|
+
message, and there are further parts to receive.
|
19
|
+
|
20
|
+
|
21
|
+
RETURN VALUE
|
22
|
+
------------
|
23
|
+
The _zmq_msg_more()_ function shall return zero if this is the final part of
|
24
|
+
a multi-part message, or the only part of a single-part message. It shall
|
25
|
+
return 1 if there are further parts to receive.
|
26
|
+
|
27
|
+
|
28
|
+
EXAMPLE
|
29
|
+
-------
|
30
|
+
.Receiving a multi-part message
|
31
|
+
----
|
32
|
+
zmq_msg_t part;
|
33
|
+
while (true) {
|
34
|
+
// Create an empty 0MQ message to hold the message part
|
35
|
+
int rc = zmq_msg_init (&part);
|
36
|
+
assert (rc == 0);
|
37
|
+
// Block until a message is available to be received from socket
|
38
|
+
rc = zmq_recvmsg (socket, &part, 0);
|
39
|
+
assert (rc != -1);
|
40
|
+
if (zmq_msg_more (&part))
|
41
|
+
fprintf (stderr, "more\n");
|
42
|
+
else {
|
43
|
+
fprintf (stderr, "end\n");
|
44
|
+
break;
|
45
|
+
}
|
46
|
+
zmq_msg_close (part);
|
47
|
+
}
|
48
|
+
----
|
49
|
+
|
50
|
+
|
51
|
+
SEE ALSO
|
52
|
+
--------
|
53
|
+
linkzmq:zmq_msg_get[3]
|
54
|
+
linkzmq:zmq_msg_set[3]
|
55
|
+
linkzmq:zmq_msg_init[3]
|
56
|
+
linkzmq:zmq_msg_close[3]
|
57
|
+
linkzmq:zmq[7]
|
58
|
+
|
59
|
+
|
60
|
+
AUTHORS
|
61
|
+
-------
|
62
|
+
This 0MQ manual page was written by Chuck Remes <cremes@mac.com> and Pieter
|
63
|
+
Hintjens <ph@imatix.com>.
|
@@ -0,0 +1,52 @@
|
|
1
|
+
zmq_msg_move(3)
|
2
|
+
===============
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_move - move content of a message to another message
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*int zmq_msg_move (zmq_msg_t '*dest', zmq_msg_t '*src');*
|
13
|
+
|
14
|
+
|
15
|
+
DESCRIPTION
|
16
|
+
-----------
|
17
|
+
The _zmq_msg_move()_ function shall move the content of the message object
|
18
|
+
referenced by 'src' to the message object referenced by 'dest'. No actual
|
19
|
+
copying of message content is performed, 'dest' is simply updated to reference
|
20
|
+
the new content. 'src' becomes an empty message after calling _zmq_msg_move()_.
|
21
|
+
The original content of 'dest', if any, shall be released.
|
22
|
+
|
23
|
+
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
24
|
+
_zmq_msg_ family of functions.
|
25
|
+
|
26
|
+
|
27
|
+
RETURN VALUE
|
28
|
+
------------
|
29
|
+
The _zmq_msg_move()_ function shall return zero if successful. Otherwise it
|
30
|
+
shall return `-1` and set 'errno' to one of the values defined below.
|
31
|
+
|
32
|
+
|
33
|
+
ERRORS
|
34
|
+
------
|
35
|
+
*EFAULT*::
|
36
|
+
Invalid message.
|
37
|
+
|
38
|
+
|
39
|
+
SEE ALSO
|
40
|
+
--------
|
41
|
+
linkzmq:zmq_msg_copy[3]
|
42
|
+
linkzmq:zmq_msg_init[3]
|
43
|
+
linkzmq:zmq_msg_init_size[3]
|
44
|
+
linkzmq:zmq_msg_init_data[3]
|
45
|
+
linkzmq:zmq_msg_close[3]
|
46
|
+
linkzmq:zmq[7]
|
47
|
+
|
48
|
+
|
49
|
+
AUTHORS
|
50
|
+
-------
|
51
|
+
This 0MQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and
|
52
|
+
Martin Lucina <mato@kotelna.sk>.
|
@@ -0,0 +1,125 @@
|
|
1
|
+
zmq_msg_recv(3)
|
2
|
+
===============
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
----
|
7
|
+
zmq_msg_recv - receive a message part from a socket
|
8
|
+
|
9
|
+
|
10
|
+
SYNOPSIS
|
11
|
+
--------
|
12
|
+
*int zmq_msg_recv (zmq_msg_t '*msg', void '*socket', int 'flags');*
|
13
|
+
|
14
|
+
|
15
|
+
DESCRIPTION
|
16
|
+
-----------
|
17
|
+
The _zmq_msg_recv()_ function is identical to linkzmq:zmq_recvmsg[3], which
|
18
|
+
shall be deprecated in future versions. _zmq_msg_recv()_ is more consistent
|
19
|
+
with other message manipulation functions.
|
20
|
+
|
21
|
+
The _zmq_msg_recv()_ function shall receive a message part from the socket
|
22
|
+
referenced by the 'socket' argument and store it in the message referenced by
|
23
|
+
the 'msg' argument. Any content previously stored in 'msg' shall be properly
|
24
|
+
deallocated. If there are no message parts available on the specified 'socket'
|
25
|
+
the _zmq_msg_recv()_ function shall block until the request can be satisfied.
|
26
|
+
The 'flags' argument is a combination of the flags defined below:
|
27
|
+
|
28
|
+
*ZMQ_DONTWAIT*::
|
29
|
+
Specifies that the operation should be performed in non-blocking mode. If there
|
30
|
+
are no messages available on the specified 'socket', the _zmq_msg_recv()_
|
31
|
+
function shall fail with 'errno' set to EAGAIN.
|
32
|
+
|
33
|
+
|
34
|
+
Multi-part messages
|
35
|
+
~~~~~~~~~~~~~~~~~~~
|
36
|
+
A 0MQ message is composed of 1 or more message parts. Each message
|
37
|
+
part is an independent 'zmq_msg_t' in its own right. 0MQ ensures atomic
|
38
|
+
delivery of messages: peers shall receive either all _message parts_ of a
|
39
|
+
message or none at all. The total number of message parts is unlimited except
|
40
|
+
by available memory.
|
41
|
+
|
42
|
+
An application that processes multi-part messages must use the _ZMQ_RCVMORE_
|
43
|
+
linkzmq:zmq_getsockopt[3] option after calling _zmq_msg_recv()_ to determine if
|
44
|
+
there are further parts to receive.
|
45
|
+
|
46
|
+
|
47
|
+
RETURN VALUE
|
48
|
+
------------
|
49
|
+
The _zmq_msg_recv()_ function shall return number of bytes in the message
|
50
|
+
if successful. Otherwise it shall return `-1` and set 'errno' to one of the
|
51
|
+
values defined below.
|
52
|
+
|
53
|
+
|
54
|
+
ERRORS
|
55
|
+
------
|
56
|
+
*EAGAIN*::
|
57
|
+
Non-blocking mode was requested and no messages are available at the moment.
|
58
|
+
*ENOTSUP*::
|
59
|
+
The _zmq_msg_recv()_ operation is not supported by this socket type.
|
60
|
+
*EFSM*::
|
61
|
+
The _zmq_msg_recv()_ operation cannot be performed on this socket at the moment
|
62
|
+
due to the socket not being in the appropriate state. This error may occur with
|
63
|
+
socket types that switch between several states, such as ZMQ_REP. See the
|
64
|
+
_messaging patterns_ section of linkzmq:zmq_socket[3] for more information.
|
65
|
+
*ETERM*::
|
66
|
+
The 0MQ 'context' associated with the specified 'socket' was terminated.
|
67
|
+
*ENOTSOCK*::
|
68
|
+
The provided 'socket' was invalid.
|
69
|
+
*EINTR*::
|
70
|
+
The operation was interrupted by delivery of a signal before a message was
|
71
|
+
available.
|
72
|
+
*EFAULT*::
|
73
|
+
The message passed to the function was invalid.
|
74
|
+
|
75
|
+
|
76
|
+
EXAMPLE
|
77
|
+
-------
|
78
|
+
.Receiving a message from a socket
|
79
|
+
----
|
80
|
+
/* Create an empty 0MQ message */
|
81
|
+
zmq_msg_t msg;
|
82
|
+
int rc = zmq_msg_init (&msg);
|
83
|
+
assert (rc == 0);
|
84
|
+
/* Block until a message is available to be received from socket */
|
85
|
+
rc = zmq_msg_recv (&msg, socket, 0);
|
86
|
+
assert (rc != -1);
|
87
|
+
/* Release message */
|
88
|
+
zmq_msg_close (&msg);
|
89
|
+
----
|
90
|
+
|
91
|
+
.Receiving a multi-part message
|
92
|
+
----
|
93
|
+
int64_t more;
|
94
|
+
size_t more_size = sizeof more;
|
95
|
+
do {
|
96
|
+
/* Create an empty 0MQ message to hold the message part */
|
97
|
+
zmq_msg_t part;
|
98
|
+
int rc = zmq_msg_init (&part);
|
99
|
+
assert (rc == 0);
|
100
|
+
/* Block until a message is available to be received from socket */
|
101
|
+
rc = zmq_msg_recv (&part, socket, 0);
|
102
|
+
assert (rc != -1);
|
103
|
+
/* Determine if more message parts are to follow */
|
104
|
+
rc = zmq_getsockopt (socket, ZMQ_RCVMORE, &more, &more_size);
|
105
|
+
assert (rc == 0);
|
106
|
+
zmq_msg_close (&part);
|
107
|
+
} while (more);
|
108
|
+
----
|
109
|
+
|
110
|
+
|
111
|
+
SEE ALSO
|
112
|
+
--------
|
113
|
+
linkzmq:zmq_recv[3]
|
114
|
+
linkzmq:zmq_send[3]
|
115
|
+
linkzmq:zmq_msg_send[3]
|
116
|
+
linkzmq:zmq_getsockopt[3]
|
117
|
+
linkzmq:zmq_socket[7]
|
118
|
+
linkzmq:zmq[7]
|
119
|
+
|
120
|
+
|
121
|
+
AUTHORS
|
122
|
+
-------
|
123
|
+
This man page was written by Martin Sustrik <sustrik@250bpm.com>, Martin
|
124
|
+
Lucina <martin@lucina.net>, and Pieter Hintjens <ph@imatix.com>.
|
125
|
+
|