rbczmq 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitmodules +1 -1
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +5 -4
- data/ext/czmq/.gitignore +5 -0
- data/ext/czmq/.travis.yml +10 -1
- data/ext/czmq/AUTHORS +2 -0
- data/ext/czmq/COPYING.LESSER +3 -0
- data/ext/czmq/Makefile.am +13 -3
- data/ext/czmq/NEWS +132 -0
- data/ext/czmq/README.md +1553 -615
- data/ext/czmq/README.txt +188 -72
- data/ext/czmq/addons/Makefile.am +9 -0
- data/ext/czmq/addons/makecert.c +72 -0
- data/ext/czmq/builds/mingw32/Makefile.mingw32 +11 -3
- data/ext/czmq/builds/msvc/.gitignore +4 -1
- data/ext/czmq/builds/msvc/czmq.vcproj +4 -0
- data/ext/czmq/builds/msvc/czmq.vcxproj +6 -1
- data/ext/czmq/builds/msvc/czmq.vcxproj.filters +4 -1
- data/ext/{zeromq/cmake/Modules/zmq_version.cpp → czmq/builds/msvc/platform.h} +10 -9
- data/ext/czmq/configure.ac +64 -5
- data/ext/czmq/doc/Makefile.am +8 -1
- data/ext/czmq/doc/mkmans +17 -0
- data/ext/czmq/doc/zauth.txt +191 -0
- data/ext/czmq/doc/zbeacon.txt +13 -22
- data/ext/czmq/doc/zcert.txt +122 -0
- data/ext/czmq/doc/zcertstore.txt +107 -0
- data/ext/czmq/doc/zchunk.txt +77 -0
- data/ext/czmq/doc/zclock.txt +8 -0
- data/ext/czmq/doc/zconfig.txt +9 -63
- data/ext/czmq/doc/zctx.txt +26 -7
- data/ext/czmq/doc/zdir.txt +83 -0
- data/ext/czmq/doc/zfile.txt +130 -35
- data/ext/czmq/doc/zframe.txt +6 -39
- data/ext/czmq/doc/zhash.txt +55 -10
- data/ext/czmq/doc/zlist.txt +2 -4
- data/ext/czmq/doc/zloop.txt +7 -1
- data/ext/czmq/doc/zmsg.txt +75 -32
- data/ext/czmq/doc/zpoller.txt +88 -0
- data/ext/czmq/doc/zsocket.txt +50 -1
- data/ext/czmq/doc/zsockopt.txt +185 -251
- data/ext/czmq/doc/zstr.txt +14 -3
- data/ext/czmq/doc/zsys.txt +89 -1
- data/ext/czmq/doc/ztree.txt +21 -11
- data/ext/czmq/examples/security/LICENSE +18 -0
- data/ext/czmq/examples/security/README.txt +9 -0
- data/ext/czmq/examples/security/grasslands.c +29 -0
- data/ext/czmq/examples/security/hello.c +10 -0
- data/ext/czmq/examples/security/ironhouse.c +55 -0
- data/ext/czmq/examples/security/ironhouse2.c +103 -0
- data/ext/czmq/examples/security/stonehouse.c +51 -0
- data/ext/czmq/examples/security/strawhouse.c +44 -0
- data/ext/czmq/examples/security/woodhouse.c +40 -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 +10 -4
- data/ext/czmq/include/czmq_prelude.h +42 -42
- data/ext/czmq/include/zauth.h +97 -0
- data/ext/czmq/include/zbeacon.h +0 -5
- data/ext/czmq/include/zcert.h +118 -0
- data/ext/czmq/include/zcertstore.h +78 -0
- data/ext/czmq/include/zchunk.h +87 -0
- data/ext/czmq/include/zclock.h +4 -0
- data/ext/czmq/include/zconfig.h +21 -12
- data/ext/czmq/include/zctx.h +34 -11
- data/ext/czmq/include/zdir.h +90 -0
- data/ext/czmq/include/zfile.h +104 -25
- data/ext/czmq/include/zframe.h +7 -20
- data/ext/czmq/include/zhash.h +13 -0
- data/ext/czmq/include/zlist.h +0 -4
- data/ext/czmq/include/zloop.h +5 -5
- data/ext/czmq/include/zmsg.h +59 -29
- data/ext/czmq/include/zmutex.h +5 -0
- data/ext/czmq/include/zpoller.h +72 -0
- data/ext/czmq/include/zsocket.h +12 -15
- data/ext/czmq/include/zsockopt.h +124 -121
- data/ext/czmq/include/zstr.h +12 -9
- data/ext/czmq/include/zsys.h +50 -2
- data/ext/czmq/mkdoc +1 -1
- data/ext/czmq/model/sockopts.xml +101 -21
- data/ext/czmq/scripts/sockopts.gsl +95 -41
- data/ext/czmq/src/Makefile.am +13 -0
- data/ext/czmq/src/czmq_selftest.c +16 -10
- data/ext/czmq/src/selftest +2 -2
- data/ext/czmq/src/zauth.c +714 -0
- data/ext/czmq/src/zbeacon.c +27 -35
- data/ext/czmq/src/zcert.c +463 -0
- data/ext/czmq/src/zcertstore.c +265 -0
- data/ext/czmq/src/zchunk.c +207 -0
- data/ext/czmq/src/zclock.c +18 -0
- data/ext/czmq/src/zconfig.c +116 -99
- data/ext/czmq/src/zctx.c +103 -18
- data/ext/czmq/src/zdir.c +409 -0
- data/ext/czmq/src/zfile.c +421 -130
- data/ext/czmq/src/zframe.c +28 -127
- data/ext/czmq/src/zhash.c +255 -139
- data/ext/czmq/src/zlist.c +2 -8
- data/ext/czmq/src/zloop.c +40 -13
- data/ext/czmq/src/zmsg.c +109 -141
- data/ext/czmq/src/zmutex.c +27 -1
- data/ext/czmq/src/zpoller.c +218 -0
- data/ext/czmq/src/zsocket.c +53 -66
- data/ext/czmq/src/zsockopt.c +2337 -682
- data/ext/czmq/src/zstr.c +48 -118
- data/ext/czmq/src/zsys.c +270 -3
- data/ext/czmq/src/zthread.c +2 -2
- data/ext/czmq/src/ztree.c +179 -180
- data/ext/rbczmq/beacon.c +1 -1
- data/ext/rbczmq/context.c +12 -3
- data/ext/rbczmq/context.h +7 -0
- data/ext/rbczmq/extconf.rb +13 -4
- data/ext/rbczmq/pollitem.c +1 -1
- data/ext/rbczmq/socket.c +34 -24
- data/ext/rbczmq/socket.h +3 -2
- data/ext/zeromq/AUTHORS +17 -3
- data/ext/zeromq/CMakeLists.txt +742 -339
- data/ext/zeromq/COPYING.LESSER +2 -0
- data/ext/zeromq/Makefile.am +3 -3
- data/ext/zeromq/NEWS +130 -1
- data/ext/zeromq/{README → README.md} +8 -9
- data/ext/zeromq/builds/cmake/Modules/FindAsciiDoc.cmake +24 -0
- data/ext/zeromq/builds/cmake/Modules/TestZMQVersion.cmake +18 -0
- data/ext/zeromq/builds/cmake/Modules/ZMQSourceRunChecks.cmake +129 -0
- data/ext/zeromq/{cmake → builds/cmake}/NSIS.template32.in +1 -1
- data/ext/zeromq/{cmake → builds/cmake}/NSIS.template64.in +1 -1
- data/ext/zeromq/builds/cmake/platform.hpp.in +88 -0
- data/ext/zeromq/builds/mingw32/Makefile.mingw32 +47 -0
- data/ext/zeromq/{src/i_msg_sink.hpp → builds/mingw32/platform.hpp} +10 -21
- data/ext/zeromq/builds/msvc/Makefile.am +5 -2
- data/ext/zeromq/builds/msvc/c_local_lat/c_local_lat.vcxproj +1 -1
- data/ext/zeromq/builds/msvc/c_local_lat/c_local_lat11.vcxproj +91 -0
- data/ext/zeromq/builds/msvc/c_local_thr/c_local_thr.vcproj +2 -0
- data/ext/zeromq/builds/msvc/c_local_thr/c_local_thr.vcxproj +21 -1
- data/ext/zeromq/builds/msvc/c_local_thr/c_local_thr11.vcxproj +111 -0
- data/ext/zeromq/builds/msvc/c_remote_lat/c_remote_lat.vcxproj +1 -1
- data/ext/zeromq/builds/msvc/c_remote_lat/c_remote_lat11.vcxproj +91 -0
- data/ext/zeromq/builds/msvc/c_remote_thr/c_remote_thr.vcproj +2 -0
- data/ext/zeromq/builds/msvc/c_remote_thr/c_remote_thr.vcxproj +21 -1
- data/ext/zeromq/builds/msvc/c_remote_thr/c_remote_thr11.vcxproj +111 -0
- data/ext/zeromq/builds/msvc/errno.cpp +1 -1
- data/ext/zeromq/builds/msvc/errno.hpp +1 -1
- data/ext/zeromq/builds/msvc/inproc_lat/inproc_lat.vcproj +176 -174
- data/ext/zeromq/builds/msvc/inproc_lat/inproc_lat.vcxproj +21 -1
- data/ext/zeromq/builds/msvc/inproc_lat/inproc_lat11.vcxproj +110 -0
- data/ext/zeromq/builds/msvc/inproc_thr/inproc_thr.vcproj +176 -174
- data/ext/zeromq/builds/msvc/inproc_thr/inproc_thr.vcxproj +21 -1
- data/ext/zeromq/builds/msvc/inproc_thr/inproc_thr11.vcxproj +110 -0
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcproj +997 -804
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcxproj +78 -2
- data/ext/zeromq/builds/msvc/libzmq/libzmq.vcxproj.filters +42 -6
- data/ext/zeromq/builds/msvc/libzmq/libzmq11.vcxproj +362 -0
- data/ext/zeromq/builds/msvc/msvc.sln +6 -0
- data/ext/zeromq/builds/msvc/msvc10.sln +36 -2
- data/ext/zeromq/builds/msvc/msvc11.sln +150 -0
- data/ext/zeromq/builds/msvc/properties/Static.props +15 -0
- data/ext/zeromq/builds/msvc/properties/ZeroMQ.props +0 -1
- data/ext/zeromq/builds/msvc/properties/ZeroMQ_Static.props +23 -0
- data/ext/zeromq/builds/redhat/zeromq.spec.in +2 -1
- data/ext/zeromq/{configure.in → configure.ac} +74 -15
- data/ext/zeromq/doc/Makefile.am +6 -4
- data/ext/zeromq/doc/zmq.txt +30 -3
- data/ext/zeromq/doc/zmq_bind.txt +2 -2
- data/ext/zeromq/doc/zmq_close.txt +2 -2
- data/ext/zeromq/doc/zmq_connect.txt +9 -7
- data/ext/zeromq/doc/zmq_ctx_destroy.txt +4 -3
- data/ext/zeromq/doc/zmq_ctx_get.txt +8 -3
- data/ext/zeromq/doc/zmq_ctx_new.txt +3 -2
- data/ext/zeromq/doc/zmq_ctx_set.txt +13 -1
- data/ext/zeromq/doc/zmq_ctx_shutdown.txt +52 -0
- data/ext/zeromq/doc/zmq_ctx_term.txt +67 -0
- data/ext/zeromq/doc/zmq_curve.txt +92 -0
- data/ext/zeromq/doc/zmq_curve_keypair.txt +56 -0
- data/ext/zeromq/doc/zmq_disconnect.txt +2 -2
- data/ext/zeromq/doc/zmq_epgm.txt +5 -4
- data/ext/zeromq/doc/zmq_errno.txt +2 -2
- data/ext/zeromq/doc/zmq_getsockopt.txt +149 -24
- data/ext/zeromq/doc/zmq_init.txt +2 -2
- data/ext/zeromq/doc/zmq_inproc.txt +2 -2
- data/ext/zeromq/doc/zmq_ipc.txt +10 -5
- data/ext/zeromq/doc/zmq_msg_close.txt +4 -3
- data/ext/zeromq/doc/zmq_msg_copy.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_data.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_get.txt +3 -3
- data/ext/zeromq/doc/zmq_msg_init.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_init_data.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_init_size.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_more.txt +6 -4
- data/ext/zeromq/doc/zmq_msg_move.txt +2 -2
- data/ext/zeromq/doc/zmq_msg_recv.txt +3 -4
- data/ext/zeromq/doc/zmq_msg_send.txt +10 -7
- data/ext/zeromq/doc/zmq_msg_set.txt +2 -1
- data/ext/zeromq/doc/zmq_msg_size.txt +2 -2
- data/ext/zeromq/doc/zmq_null.txt +27 -0
- data/ext/zeromq/doc/zmq_pgm.txt +5 -4
- data/ext/zeromq/doc/zmq_plain.txt +37 -0
- data/ext/zeromq/doc/zmq_poll.txt +2 -6
- data/ext/zeromq/doc/zmq_proxy.txt +2 -1
- data/ext/zeromq/doc/zmq_recv.txt +2 -5
- data/ext/zeromq/doc/zmq_recvmsg.txt +3 -5
- data/ext/zeromq/doc/zmq_send.txt +9 -7
- data/ext/zeromq/doc/zmq_send_const.txt +103 -0
- data/ext/zeromq/doc/zmq_sendmsg.txt +8 -8
- data/ext/zeromq/doc/zmq_setsockopt.txt +291 -37
- data/ext/zeromq/doc/zmq_socket.txt +92 -21
- data/ext/zeromq/doc/zmq_socket_monitor.txt +102 -131
- data/ext/zeromq/doc/zmq_strerror.txt +3 -2
- data/ext/zeromq/doc/zmq_tcp.txt +4 -2
- data/ext/zeromq/doc/zmq_term.txt +3 -3
- data/ext/zeromq/doc/zmq_unbind.txt +2 -2
- data/ext/zeromq/doc/zmq_version.txt +3 -2
- data/ext/zeromq/doc/zmq_z85_decode.txt +50 -0
- data/ext/zeromq/doc/zmq_z85_encode.txt +57 -0
- data/ext/zeromq/foreign/openpgm/libpgm-5.2.122~dfsg.tar.gz +0 -0
- data/ext/zeromq/include/zmq.h +179 -136
- data/ext/zeromq/include/zmq_utils.h +44 -3
- data/ext/zeromq/perf/inproc_lat.cpp +2 -4
- data/ext/zeromq/perf/inproc_thr.cpp +1 -1
- data/ext/zeromq/perf/local_lat.cpp +1 -3
- data/ext/zeromq/perf/local_thr.cpp +1 -3
- data/ext/zeromq/perf/remote_lat.cpp +1 -3
- data/ext/zeromq/perf/remote_thr.cpp +1 -8
- data/ext/zeromq/src/Makefile.am +26 -7
- data/ext/zeromq/src/address.cpp +7 -8
- data/ext/zeromq/src/address.hpp +1 -2
- data/ext/zeromq/src/array.hpp +1 -3
- data/ext/zeromq/src/atomic_counter.hpp +11 -3
- data/ext/zeromq/src/atomic_ptr.hpp +9 -3
- data/ext/zeromq/src/blob.hpp +2 -2
- data/ext/zeromq/src/clock.cpp +3 -4
- data/ext/zeromq/src/clock.hpp +1 -2
- data/ext/zeromq/src/command.hpp +2 -3
- data/ext/zeromq/src/config.hpp +1 -3
- data/ext/zeromq/src/ctx.cpp +154 -15
- data/ext/zeromq/src/ctx.hpp +34 -3
- data/ext/zeromq/src/curve_client.cpp +410 -0
- data/ext/zeromq/src/curve_client.hpp +109 -0
- data/ext/zeromq/src/curve_server.cpp +629 -0
- data/ext/zeromq/src/curve_server.hpp +120 -0
- data/ext/zeromq/src/dbuffer.hpp +134 -0
- data/ext/zeromq/src/dealer.cpp +52 -60
- data/ext/zeromq/src/dealer.hpp +12 -26
- data/ext/zeromq/src/decoder.hpp +27 -102
- data/ext/zeromq/src/devpoll.cpp +1 -3
- data/ext/zeromq/src/devpoll.hpp +1 -3
- data/ext/zeromq/src/dist.cpp +17 -15
- data/ext/zeromq/src/dist.hpp +5 -6
- data/ext/zeromq/src/encoder.hpp +32 -52
- data/ext/zeromq/src/epoll.cpp +1 -3
- data/ext/zeromq/src/epoll.hpp +1 -3
- data/ext/zeromq/src/err.cpp +2 -4
- data/ext/zeromq/src/err.hpp +7 -4
- data/ext/zeromq/src/fd.hpp +1 -2
- data/ext/zeromq/src/fq.cpp +2 -5
- data/ext/zeromq/src/fq.hpp +2 -4
- data/ext/zeromq/src/i_decoder.hpp +11 -9
- data/ext/zeromq/src/i_encoder.hpp +7 -11
- data/ext/zeromq/src/i_engine.hpp +3 -3
- data/ext/zeromq/src/i_poll_events.hpp +1 -3
- data/ext/zeromq/src/io_object.cpp +1 -3
- data/ext/zeromq/src/io_object.hpp +1 -3
- data/ext/zeromq/src/io_thread.cpp +1 -3
- data/ext/zeromq/src/io_thread.hpp +1 -3
- data/ext/zeromq/src/ip.cpp +46 -5
- data/ext/zeromq/src/ip.hpp +7 -4
- data/ext/zeromq/src/ipc_address.cpp +13 -2
- data/ext/zeromq/src/ipc_address.hpp +1 -2
- data/ext/zeromq/src/ipc_connecter.cpp +3 -3
- data/ext/zeromq/src/ipc_connecter.hpp +1 -2
- data/ext/zeromq/src/ipc_listener.cpp +15 -10
- data/ext/zeromq/src/ipc_listener.hpp +1 -2
- data/ext/zeromq/src/kqueue.cpp +11 -3
- data/ext/zeromq/src/kqueue.hpp +7 -3
- data/ext/zeromq/src/lb.cpp +13 -11
- data/ext/zeromq/src/lb.hpp +10 -5
- data/ext/zeromq/src/libzmq.pc.cmake.in +10 -0
- data/ext/zeromq/src/likely.hpp +1 -2
- data/ext/zeromq/src/mailbox.cpp +1 -4
- data/ext/zeromq/src/mailbox.hpp +8 -3
- data/ext/zeromq/src/mechanism.cpp +163 -0
- data/ext/zeromq/src/mechanism.hpp +101 -0
- data/ext/zeromq/src/msg.cpp +38 -18
- data/ext/zeromq/src/msg.hpp +19 -7
- data/ext/zeromq/src/mtrie.cpp +16 -14
- data/ext/zeromq/src/mtrie.hpp +1 -3
- data/ext/zeromq/src/mutex.hpp +42 -3
- data/ext/zeromq/src/null_mechanism.cpp +282 -0
- data/ext/zeromq/src/null_mechanism.hpp +65 -0
- data/ext/zeromq/src/object.cpp +29 -3
- data/ext/zeromq/src/object.hpp +8 -5
- data/ext/zeromq/src/options.cpp +557 -485
- data/ext/zeromq/src/options.hpp +38 -24
- data/ext/zeromq/src/own.cpp +1 -2
- data/ext/zeromq/src/own.hpp +1 -2
- data/ext/zeromq/src/pair.cpp +8 -25
- data/ext/zeromq/src/pair.hpp +5 -22
- data/ext/zeromq/src/pgm_receiver.cpp +80 -67
- data/ext/zeromq/src/pgm_receiver.hpp +11 -10
- data/ext/zeromq/src/pgm_sender.cpp +37 -16
- data/ext/zeromq/src/pgm_sender.hpp +12 -6
- data/ext/zeromq/src/pgm_socket.cpp +8 -8
- data/ext/zeromq/src/pgm_socket.hpp +1 -4
- data/ext/zeromq/src/pipe.cpp +110 -72
- data/ext/zeromq/src/pipe.hpp +36 -27
- data/ext/zeromq/src/plain_mechanism.cpp +482 -0
- data/ext/zeromq/src/plain_mechanism.hpp +88 -0
- data/ext/zeromq/src/poll.cpp +1 -3
- data/ext/zeromq/src/poll.hpp +1 -3
- data/ext/zeromq/src/poller.hpp +1 -3
- data/ext/zeromq/src/poller_base.cpp +3 -3
- data/ext/zeromq/src/poller_base.hpp +1 -2
- data/ext/zeromq/src/precompiled.cpp +1 -2
- data/ext/zeromq/src/precompiled.hpp +1 -2
- data/ext/zeromq/src/proxy.cpp +1 -2
- data/ext/zeromq/src/proxy.hpp +1 -2
- data/ext/zeromq/src/pub.cpp +2 -16
- data/ext/zeromq/src/pub.hpp +2 -19
- data/ext/zeromq/src/pull.cpp +7 -24
- data/ext/zeromq/src/pull.hpp +4 -21
- data/ext/zeromq/src/push.cpp +8 -22
- data/ext/zeromq/src/push.hpp +4 -21
- data/ext/zeromq/src/random.cpp +1 -2
- data/ext/zeromq/src/random.hpp +1 -2
- data/ext/zeromq/src/raw_decoder.cpp +63 -0
- data/ext/zeromq/src/raw_decoder.hpp +66 -0
- data/ext/zeromq/src/raw_encoder.cpp +40 -0
- data/ext/zeromq/src/raw_encoder.hpp +60 -0
- data/ext/zeromq/src/reaper.cpp +12 -2
- data/ext/zeromq/src/reaper.hpp +6 -2
- data/ext/zeromq/src/rep.cpp +7 -21
- data/ext/zeromq/src/rep.hpp +3 -20
- data/ext/zeromq/src/req.cpp +132 -38
- data/ext/zeromq/src/req.hpp +27 -8
- data/ext/zeromq/src/router.cpp +109 -65
- data/ext/zeromq/src/router.hpp +9 -23
- data/ext/zeromq/src/select.cpp +1 -3
- data/ext/zeromq/src/select.hpp +1 -3
- data/ext/zeromq/src/session_base.cpp +164 -118
- data/ext/zeromq/src/session_base.hpp +29 -22
- data/ext/zeromq/src/signaler.cpp +127 -19
- data/ext/zeromq/src/signaler.hpp +20 -3
- data/ext/zeromq/src/socket_base.cpp +167 -134
- data/ext/zeromq/src/socket_base.hpp +18 -20
- data/ext/zeromq/src/stdint.hpp +1 -2
- data/ext/zeromq/src/stream.cpp +257 -0
- data/ext/zeromq/src/stream.hpp +97 -0
- data/ext/zeromq/src/stream_engine.cpp +405 -157
- data/ext/zeromq/src/stream_engine.hpp +72 -23
- data/ext/zeromq/src/sub.cpp +5 -18
- data/ext/zeromq/src/sub.hpp +2 -19
- data/ext/zeromq/src/tcp.cpp +23 -3
- data/ext/zeromq/src/tcp.hpp +7 -3
- data/ext/zeromq/src/tcp_address.cpp +35 -46
- data/ext/zeromq/src/tcp_address.hpp +7 -12
- data/ext/zeromq/src/tcp_connecter.cpp +10 -5
- data/ext/zeromq/src/tcp_connecter.hpp +1 -3
- data/ext/zeromq/src/tcp_listener.cpp +19 -8
- data/ext/zeromq/src/tcp_listener.hpp +1 -3
- data/ext/zeromq/src/thread.cpp +2 -4
- data/ext/zeromq/src/thread.hpp +1 -3
- data/ext/zeromq/src/trie.cpp +122 -125
- data/ext/zeromq/src/trie.hpp +1 -4
- data/ext/zeromq/src/v1_decoder.cpp +77 -91
- data/ext/zeromq/src/v1_decoder.hpp +10 -21
- data/ext/zeromq/src/v1_encoder.cpp +24 -62
- data/ext/zeromq/src/v1_encoder.hpp +7 -18
- data/ext/zeromq/src/v2_decoder.cpp +142 -0
- data/ext/zeromq/src/v2_decoder.hpp +57 -0
- data/ext/zeromq/src/v2_encoder.cpp +67 -0
- data/ext/zeromq/src/{i_msg_source.hpp → v2_encoder.hpp} +20 -15
- data/ext/zeromq/src/{v1_protocol.hpp → v2_protocol.hpp} +7 -11
- data/ext/zeromq/src/windows.hpp +2 -4
- data/ext/zeromq/src/wire.hpp +5 -6
- data/ext/zeromq/src/xpub.cpp +37 -46
- data/ext/zeromq/src/xpub.hpp +7 -23
- data/ext/zeromq/src/xsub.cpp +26 -40
- data/ext/zeromq/src/xsub.hpp +5 -21
- data/ext/zeromq/src/ypipe.hpp +3 -4
- data/ext/zeromq/src/ypipe_base.hpp +44 -0
- data/ext/zeromq/src/ypipe_conflate.hpp +127 -0
- data/ext/zeromq/src/yqueue.hpp +3 -7
- data/ext/zeromq/src/zmq.cpp +76 -96
- data/ext/zeromq/src/zmq_utils.cpp +146 -8
- data/ext/zeromq/tests/Makefile.am +56 -8
- data/ext/zeromq/tests/test_abstract_ipc.cpp +57 -0
- data/ext/zeromq/tests/test_conflate.cpp +75 -0
- data/ext/zeromq/tests/test_connect_resolve.cpp +14 -15
- data/ext/zeromq/tests/test_ctx_destroy.cpp +90 -0
- data/ext/zeromq/tests/test_ctx_options.cpp +52 -0
- data/ext/zeromq/tests/test_disconnect_inproc.cpp +35 -30
- data/ext/zeromq/tests/test_fork.cpp +81 -0
- data/ext/zeromq/tests/test_hwm.cpp +251 -35
- data/ext/zeromq/tests/test_immediate.cpp +229 -0
- data/ext/zeromq/tests/test_inproc_connect.cpp +339 -0
- data/ext/zeromq/tests/test_invalid_rep.cpp +9 -13
- data/ext/zeromq/tests/test_iov.cpp +106 -0
- data/ext/zeromq/tests/test_issue_566.cpp +85 -0
- data/ext/zeromq/tests/test_last_endpoint.cpp +14 -18
- data/ext/zeromq/tests/test_linger.cpp +93 -0
- data/ext/zeromq/tests/test_monitor.cpp +112 -129
- data/ext/zeromq/tests/test_msg_flags.cpp +17 -16
- data/ext/zeromq/tests/test_pair_inproc.cpp +25 -7
- data/ext/zeromq/tests/test_pair_ipc.cpp +4 -7
- data/ext/zeromq/tests/test_pair_tcp.cpp +4 -8
- data/ext/zeromq/tests/test_probe_router.cpp +72 -0
- data/ext/zeromq/tests/test_req_correlate.cpp +177 -0
- data/ext/zeromq/tests/test_req_relaxed.cpp +116 -0
- data/ext/zeromq/tests/test_reqrep_device.cpp +9 -17
- data/ext/zeromq/tests/test_reqrep_inproc.cpp +4 -7
- data/ext/zeromq/tests/test_reqrep_ipc.cpp +4 -7
- data/ext/zeromq/tests/test_reqrep_tcp.cpp +4 -8
- data/ext/zeromq/tests/test_router_mandatory.cpp +41 -22
- data/ext/zeromq/tests/test_security_curve.cpp +212 -0
- data/ext/zeromq/tests/test_security_null.cpp +148 -0
- data/ext/zeromq/tests/test_security_plain.cpp +150 -0
- data/ext/zeromq/tests/test_shutdown_stress.cpp +10 -23
- data/ext/zeromq/tests/test_spec_dealer.cpp +254 -0
- data/ext/zeromq/tests/test_spec_pushpull.cpp +293 -0
- data/ext/zeromq/tests/test_spec_rep.cpp +155 -0
- data/ext/zeromq/tests/test_spec_req.cpp +253 -0
- data/ext/zeromq/tests/test_spec_router.cpp +204 -0
- data/ext/zeromq/tests/test_stream.cpp +228 -0
- data/ext/zeromq/tests/test_sub_forward.cpp +14 -22
- data/ext/zeromq/tests/test_system.cpp +82 -0
- data/ext/zeromq/tests/test_term_endpoint.cpp +17 -31
- data/ext/zeromq/tests/test_timeo.cpp +34 -78
- data/ext/zeromq/tests/testutil.hpp +211 -26
- data/ext/zeromq/tools/Makefile.am +9 -0
- data/ext/zeromq/tools/curve_keygen.c +58 -0
- data/lib/zmq/version.rb +1 -1
- data/test/test_socket.rb +4 -3
- metadata +114 -15
- data/ext/zeromq/cmake/Modules/TestZMQVersion.cmake +0 -35
- data/ext/zeromq/foreign/openpgm/libpgm-5.1.118~dfsg.tar.gz +0 -0
- data/ext/zeromq/src/decoder.cpp +0 -166
- data/ext/zeromq/src/encoder.cpp +0 -102
- data/ext/zeromq/tests/test_connect_delay.cpp +0 -260
data/ext/zeromq/src/decoder.hpp
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c)
|
3
|
-
Copyright (c) 2007-2009 iMatix Corporation
|
4
|
-
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
|
2
|
+
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
|
5
3
|
|
6
4
|
This file is part of 0MQ.
|
7
5
|
|
@@ -34,9 +32,6 @@
|
|
34
32
|
|
35
33
|
namespace zmq
|
36
34
|
{
|
37
|
-
|
38
|
-
class i_msg_sink;
|
39
|
-
|
40
35
|
// Helper base class for decoders that know the amount of data to read
|
41
36
|
// in advance at any moment. Knowing the amount in advance is a property
|
42
37
|
// of the protocol used. 0MQ framing protocol is based size-prefixed
|
@@ -92,106 +87,66 @@ namespace zmq
|
|
92
87
|
|
93
88
|
// Processes the data in the buffer previously allocated using
|
94
89
|
// get_buffer function. size_ argument specifies nemuber of bytes
|
95
|
-
// actually filled into the buffer. Function returns
|
96
|
-
//
|
97
|
-
|
90
|
+
// actually filled into the buffer. Function returns 1 when the
|
91
|
+
// whole message was decoded or 0 when more data is required.
|
92
|
+
// On error, -1 is returned and errno set accordingly.
|
93
|
+
// Number of bytes processed is returned in byts_used_.
|
94
|
+
inline int decode (const unsigned char *data_, size_t size_,
|
95
|
+
size_t &bytes_used_)
|
98
96
|
{
|
99
|
-
|
100
|
-
if (unlikely (!(static_cast <T*> (this)->next)))
|
101
|
-
return (size_t) -1;
|
97
|
+
bytes_used_ = 0;
|
102
98
|
|
103
99
|
// In case of zero-copy simply adjust the pointers, no copying
|
104
100
|
// is required. Also, run the state machine in case all the data
|
105
101
|
// were processed.
|
106
102
|
if (data_ == read_pos) {
|
103
|
+
zmq_assert (size_ <= to_read);
|
107
104
|
read_pos += size_;
|
108
105
|
to_read -= size_;
|
106
|
+
bytes_used_ = size_;
|
109
107
|
|
110
108
|
while (!to_read) {
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
return size_;
|
115
|
-
}
|
109
|
+
const int rc = (static_cast <T*> (this)->*next) ();
|
110
|
+
if (rc != 0)
|
111
|
+
return rc;
|
116
112
|
}
|
117
|
-
return
|
113
|
+
return 0;
|
118
114
|
}
|
119
115
|
|
120
|
-
|
121
|
-
while (true) {
|
122
|
-
|
123
|
-
// Try to get more space in the message to fill in.
|
124
|
-
// If none is available, return.
|
125
|
-
while (!to_read) {
|
126
|
-
if (!(static_cast <T*> (this)->*next) ()) {
|
127
|
-
if (unlikely (!(static_cast <T*> (this)->next)))
|
128
|
-
return (size_t) -1;
|
129
|
-
return pos;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
// If there are no more data in the buffer, return.
|
134
|
-
if (pos == size_)
|
135
|
-
return pos;
|
136
|
-
|
116
|
+
while (bytes_used_ < size_) {
|
137
117
|
// Copy the data from buffer to the message.
|
138
|
-
size_t to_copy = std::min (to_read, size_ -
|
139
|
-
memcpy (read_pos, data_ +
|
118
|
+
const size_t to_copy = std::min (to_read, size_ - bytes_used_);
|
119
|
+
memcpy (read_pos, data_ + bytes_used_, to_copy);
|
140
120
|
read_pos += to_copy;
|
141
|
-
pos += to_copy;
|
142
121
|
to_read -= to_copy;
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
{
|
151
|
-
// Check whether there was decoding error.
|
152
|
-
if (unlikely (!(static_cast <T*> (this)->next)))
|
153
|
-
return false;
|
154
|
-
|
155
|
-
while (!to_read) {
|
156
|
-
if (!(static_cast <T*> (this)->*next) ()) {
|
157
|
-
if (unlikely (!(static_cast <T*> (this)->next)))
|
158
|
-
return false;
|
159
|
-
return true;
|
122
|
+
bytes_used_ += to_copy;
|
123
|
+
// Try to get more space in the message to fill in.
|
124
|
+
// If none is available, return.
|
125
|
+
while (to_read == 0) {
|
126
|
+
const int rc = (static_cast <T*> (this)->*next) ();
|
127
|
+
if (rc != 0)
|
128
|
+
return rc;
|
160
129
|
}
|
161
130
|
}
|
162
131
|
|
163
|
-
return
|
164
|
-
}
|
165
|
-
|
166
|
-
inline bool message_ready_size (size_t msg_sz)
|
167
|
-
{
|
168
|
-
zmq_assert (false);
|
169
|
-
return false;
|
132
|
+
return 0;
|
170
133
|
}
|
171
134
|
|
172
135
|
protected:
|
173
136
|
|
174
137
|
// Prototype of state machine action. Action should return false if
|
175
138
|
// it is unable to push the data to the system.
|
176
|
-
typedef
|
139
|
+
typedef int (T::*step_t) ();
|
177
140
|
|
178
141
|
// This function should be called from derived class to read data
|
179
142
|
// from the buffer and schedule next state machine action.
|
180
|
-
inline void next_step (void *read_pos_, size_t to_read_,
|
181
|
-
step_t next_)
|
143
|
+
inline void next_step (void *read_pos_, size_t to_read_, step_t next_)
|
182
144
|
{
|
183
145
|
read_pos = (unsigned char*) read_pos_;
|
184
146
|
to_read = to_read_;
|
185
147
|
next = next_;
|
186
148
|
}
|
187
149
|
|
188
|
-
// This function should be called from the derived class to
|
189
|
-
// abort decoder state machine.
|
190
|
-
inline void decoding_error ()
|
191
|
-
{
|
192
|
-
next = NULL;
|
193
|
-
}
|
194
|
-
|
195
150
|
private:
|
196
151
|
|
197
152
|
// Next step. If set to NULL, it means that associated data stream
|
@@ -212,36 +167,6 @@ namespace zmq
|
|
212
167
|
decoder_base_t (const decoder_base_t&);
|
213
168
|
const decoder_base_t &operator = (const decoder_base_t&);
|
214
169
|
};
|
215
|
-
|
216
|
-
// Decoder for 0MQ framing protocol. Converts data batches into messages.
|
217
|
-
|
218
|
-
class decoder_t : public decoder_base_t <decoder_t>
|
219
|
-
{
|
220
|
-
public:
|
221
|
-
|
222
|
-
decoder_t (size_t bufsize_, int64_t maxmsgsize_);
|
223
|
-
~decoder_t ();
|
224
|
-
|
225
|
-
// Set the receiver of decoded messages.
|
226
|
-
void set_msg_sink (i_msg_sink *msg_sink_);
|
227
|
-
|
228
|
-
private:
|
229
|
-
|
230
|
-
bool one_byte_size_ready ();
|
231
|
-
bool eight_byte_size_ready ();
|
232
|
-
bool flags_ready ();
|
233
|
-
bool message_ready ();
|
234
|
-
|
235
|
-
i_msg_sink *msg_sink;
|
236
|
-
unsigned char tmpbuf [8];
|
237
|
-
msg_t in_progress;
|
238
|
-
|
239
|
-
int64_t maxmsgsize;
|
240
|
-
|
241
|
-
decoder_t (const decoder_t&);
|
242
|
-
void operator = (const decoder_t&);
|
243
|
-
};
|
244
|
-
|
245
170
|
}
|
246
171
|
|
247
172
|
#endif
|
data/ext/zeromq/src/devpoll.cpp
CHANGED
data/ext/zeromq/src/devpoll.hpp
CHANGED
data/ext/zeromq/src/dist.cpp
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c)
|
3
|
-
Copyright (c) 2011 VMware, Inc.
|
4
|
-
Copyright (c) 2011 Other contributors as noted in the AUTHORS file
|
2
|
+
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
|
5
3
|
|
6
4
|
This file is part of 0MQ.
|
7
5
|
|
@@ -76,16 +74,23 @@ void zmq::dist_t::unmatch ()
|
|
76
74
|
matching = 0;
|
77
75
|
}
|
78
76
|
|
79
|
-
void zmq::dist_t::
|
77
|
+
void zmq::dist_t::pipe_terminated (pipe_t *pipe_)
|
80
78
|
{
|
81
79
|
// Remove the pipe from the list; adjust number of matching, active and/or
|
82
80
|
// eligible pipes accordingly.
|
83
|
-
if (pipes.index (pipe_) < matching)
|
81
|
+
if (pipes.index (pipe_) < matching) {
|
82
|
+
pipes.swap (pipes.index (pipe_), matching - 1);
|
84
83
|
matching--;
|
85
|
-
|
84
|
+
}
|
85
|
+
if (pipes.index (pipe_) < active) {
|
86
|
+
pipes.swap (pipes.index (pipe_), active - 1);
|
86
87
|
active--;
|
87
|
-
|
88
|
+
}
|
89
|
+
if (pipes.index (pipe_) < eligible) {
|
90
|
+
pipes.swap (pipes.index (pipe_), eligible - 1);
|
88
91
|
eligible--;
|
92
|
+
}
|
93
|
+
|
89
94
|
pipes.erase (pipe_);
|
90
95
|
}
|
91
96
|
|
@@ -103,19 +108,19 @@ void zmq::dist_t::activated (pipe_t *pipe_)
|
|
103
108
|
}
|
104
109
|
}
|
105
110
|
|
106
|
-
int zmq::dist_t::send_to_all (msg_t *msg_
|
111
|
+
int zmq::dist_t::send_to_all (msg_t *msg_)
|
107
112
|
{
|
108
113
|
matching = active;
|
109
|
-
return send_to_matching (msg_
|
114
|
+
return send_to_matching (msg_);
|
110
115
|
}
|
111
116
|
|
112
|
-
int zmq::dist_t::send_to_matching (msg_t *msg_
|
117
|
+
int zmq::dist_t::send_to_matching (msg_t *msg_)
|
113
118
|
{
|
114
119
|
// Is this end of a multipart message?
|
115
120
|
bool msg_more = msg_->flags () & msg_t::more ? true : false;
|
116
121
|
|
117
122
|
// Push the message to matching pipes.
|
118
|
-
distribute (msg_
|
123
|
+
distribute (msg_);
|
119
124
|
|
120
125
|
// If mutlipart message is fully sent, activate all the eligible pipes.
|
121
126
|
if (!msg_more)
|
@@ -126,11 +131,8 @@ int zmq::dist_t::send_to_matching (msg_t *msg_, int flags_)
|
|
126
131
|
return 0;
|
127
132
|
}
|
128
133
|
|
129
|
-
void zmq::dist_t::distribute (msg_t *msg_
|
134
|
+
void zmq::dist_t::distribute (msg_t *msg_)
|
130
135
|
{
|
131
|
-
// flags_ is unused
|
132
|
-
(void)flags_;
|
133
|
-
|
134
136
|
// If there are no matching pipes available, simply drop the message.
|
135
137
|
if (matching == 0) {
|
136
138
|
int rc = msg_->close ();
|
data/ext/zeromq/src/dist.hpp
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c)
|
3
|
-
Copyright (c) 2011 Other contributors as noted in the AUTHORS file
|
2
|
+
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
|
4
3
|
|
5
4
|
This file is part of 0MQ.
|
6
5
|
|
@@ -55,13 +54,13 @@ namespace zmq
|
|
55
54
|
void unmatch ();
|
56
55
|
|
57
56
|
// Removes the pipe from the distributor object.
|
58
|
-
void
|
57
|
+
void pipe_terminated (zmq::pipe_t *pipe_);
|
59
58
|
|
60
59
|
// Send the message to the matching outbound pipes.
|
61
|
-
int send_to_matching (zmq::msg_t *msg_
|
60
|
+
int send_to_matching (zmq::msg_t *msg_);
|
62
61
|
|
63
62
|
// Send the message to all the outbound pipes.
|
64
|
-
int send_to_all (zmq::msg_t *msg_
|
63
|
+
int send_to_all (zmq::msg_t *msg_);
|
65
64
|
|
66
65
|
bool has_out ();
|
67
66
|
|
@@ -72,7 +71,7 @@ namespace zmq
|
|
72
71
|
bool write (zmq::pipe_t *pipe_, zmq::msg_t *msg_);
|
73
72
|
|
74
73
|
// Put the message to all active pipes.
|
75
|
-
void distribute (zmq::msg_t *msg_
|
74
|
+
void distribute (zmq::msg_t *msg_);
|
76
75
|
|
77
76
|
// List of outbound pipes.
|
78
77
|
typedef array_t <zmq::pipe_t, 2> pipes_t;
|
data/ext/zeromq/src/encoder.hpp
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c)
|
3
|
-
Copyright (c) 2007-2009 iMatix Corporation
|
4
|
-
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
|
2
|
+
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
|
5
3
|
|
6
4
|
This file is part of 0MQ.
|
7
5
|
|
@@ -40,8 +38,6 @@
|
|
40
38
|
namespace zmq
|
41
39
|
{
|
42
40
|
|
43
|
-
class i_msg_source;
|
44
|
-
|
45
41
|
// Helper base class for encoders. It implements the state machine that
|
46
42
|
// fills the outgoing buffer. Derived classes should implement individual
|
47
43
|
// state machine actions.
|
@@ -51,7 +47,8 @@ namespace zmq
|
|
51
47
|
public:
|
52
48
|
|
53
49
|
inline encoder_base_t (size_t bufsize_) :
|
54
|
-
bufsize (bufsize_)
|
50
|
+
bufsize (bufsize_),
|
51
|
+
in_progress (NULL)
|
55
52
|
{
|
56
53
|
buf = (unsigned char*) malloc (bufsize_);
|
57
54
|
alloc_assert (buf);
|
@@ -67,17 +64,13 @@ namespace zmq
|
|
67
64
|
// The function returns a batch of binary data. The data
|
68
65
|
// are filled to a supplied buffer. If no buffer is supplied (data_
|
69
66
|
// points to NULL) decoder object will provide buffer of its own.
|
70
|
-
|
71
|
-
// in the batch.If there's no beginning of a message in the batch,
|
72
|
-
// offset is set to -1.
|
73
|
-
inline void get_data (unsigned char **data_, size_t *size_,
|
74
|
-
int *offset_ = NULL)
|
67
|
+
inline size_t encode (unsigned char **data_, size_t size_)
|
75
68
|
{
|
76
69
|
unsigned char *buffer = !*data_ ? buf : *data_;
|
77
|
-
size_t buffersize = !*data_ ? bufsize :
|
70
|
+
size_t buffersize = !*data_ ? bufsize : size_;
|
78
71
|
|
79
|
-
if (
|
80
|
-
|
72
|
+
if (in_progress == NULL)
|
73
|
+
return 0;
|
81
74
|
|
82
75
|
size_t pos = 0;
|
83
76
|
while (pos < buffersize) {
|
@@ -86,14 +79,15 @@ namespace zmq
|
|
86
79
|
// If there are still no data, return what we already have
|
87
80
|
// in the buffer.
|
88
81
|
if (!to_write) {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
if (!(static_cast <T*> (this)->*next) ())
|
82
|
+
if (new_msg_flag) {
|
83
|
+
int rc = in_progress->close ();
|
84
|
+
errno_assert (rc == 0);
|
85
|
+
rc = in_progress->init ();
|
86
|
+
errno_assert (rc == 0);
|
87
|
+
in_progress = NULL;
|
96
88
|
break;
|
89
|
+
}
|
90
|
+
(static_cast <T*> (this)->*next) ();
|
97
91
|
}
|
98
92
|
|
99
93
|
// If there are no data in the buffer yet and we are able to
|
@@ -108,10 +102,10 @@ namespace zmq
|
|
108
102
|
// amounts of time.
|
109
103
|
if (!pos && !*data_ && to_write >= buffersize) {
|
110
104
|
*data_ = write_pos;
|
111
|
-
|
105
|
+
pos = to_write;
|
112
106
|
write_pos = NULL;
|
113
107
|
to_write = 0;
|
114
|
-
return;
|
108
|
+
return pos;
|
115
109
|
}
|
116
110
|
|
117
111
|
// Copy data to the buffer. If the buffer is full, return.
|
@@ -123,7 +117,14 @@ namespace zmq
|
|
123
117
|
}
|
124
118
|
|
125
119
|
*data_ = buffer;
|
126
|
-
|
120
|
+
return pos;
|
121
|
+
}
|
122
|
+
|
123
|
+
void load_msg (msg_t *msg_)
|
124
|
+
{
|
125
|
+
zmq_assert (in_progress == NULL);
|
126
|
+
in_progress = msg_;
|
127
|
+
(static_cast <T*> (this)->*next) ();
|
127
128
|
}
|
128
129
|
|
129
130
|
inline bool has_data ()
|
@@ -134,18 +135,17 @@ namespace zmq
|
|
134
135
|
protected:
|
135
136
|
|
136
137
|
// Prototype of state machine action.
|
137
|
-
typedef
|
138
|
+
typedef void (T::*step_t) ();
|
138
139
|
|
139
140
|
// This function should be called from derived class to write the data
|
140
|
-
// to the buffer and schedule next state machine action.
|
141
|
-
// to true when you are writing first byte of a message.
|
141
|
+
// to the buffer and schedule next state machine action.
|
142
142
|
inline void next_step (void *write_pos_, size_t to_write_,
|
143
|
-
step_t next_, bool
|
143
|
+
step_t next_, bool new_msg_flag_)
|
144
144
|
{
|
145
145
|
write_pos = (unsigned char*) write_pos_;
|
146
146
|
to_write = to_write_;
|
147
147
|
next = next_;
|
148
|
-
|
148
|
+
new_msg_flag = new_msg_flag_;
|
149
149
|
}
|
150
150
|
|
151
151
|
private:
|
@@ -160,8 +160,7 @@ namespace zmq
|
|
160
160
|
// is dead.
|
161
161
|
step_t next;
|
162
162
|
|
163
|
-
|
164
|
-
bool beginning;
|
163
|
+
bool new_msg_flag;
|
165
164
|
|
166
165
|
// The buffer for encoded data.
|
167
166
|
size_t bufsize;
|
@@ -169,30 +168,11 @@ namespace zmq
|
|
169
168
|
|
170
169
|
encoder_base_t (const encoder_base_t&);
|
171
170
|
void operator = (const encoder_base_t&);
|
172
|
-
};
|
173
171
|
|
174
|
-
|
175
|
-
|
176
|
-
class encoder_t : public encoder_base_t <encoder_t>
|
177
|
-
{
|
178
|
-
public:
|
179
|
-
|
180
|
-
encoder_t (size_t bufsize_);
|
181
|
-
~encoder_t ();
|
182
|
-
|
183
|
-
void set_msg_source (i_msg_source *msg_source_);
|
184
|
-
|
185
|
-
private:
|
186
|
-
|
187
|
-
bool size_ready ();
|
188
|
-
bool message_ready ();
|
172
|
+
protected:
|
189
173
|
|
190
|
-
|
191
|
-
msg_t in_progress;
|
192
|
-
unsigned char tmpbuf [10];
|
174
|
+
msg_t *in_progress;
|
193
175
|
|
194
|
-
encoder_t (const encoder_t&);
|
195
|
-
const encoder_t &operator = (const encoder_t&);
|
196
176
|
};
|
197
177
|
}
|
198
178
|
|