[zeromq-dev] 0MQ/2.0 - alpha version available

Chad Harrington chad.harrington at gmail.com
Thu Sep 10 00:36:55 CEST 2009


Martin,
Thanks for your hard work on this release.  What is the best way to
implement pub-sub in 0MQ/2.0?

Chad Harrington
chad.harrington at gmail.com


On Wed, Sep 9, 2009 at 5:55 AM, Martin Sustrik <sustrik at fastmq.com> wrote:

> Hi all,
>
> Alpha version of 0MQ/2.0 is finally available:
>
> http://www.zeromq.org/area:download-v20-alpha1
>
> We are moving to the tighter release cycle, with alpha, beta and release
> candidate stages. You should be aware that alpha versions are
> functionally incomplete and possibly buggy. However, they allow you to
> catch with the progress early on and provide feedback to the developers.
>
> The main improvement in 0MQ/2.0 is socket-like API, much simpler than
> 0MQ/1.0 AMQP-like API. Here's an example how to send and receive a
> message in C++:
>
> zmq::context_t ctx (1, 1);
> zmq::socket_t s (ctx, ZMQ_REQ);
> s.bind ("eth0:5555");
>
> zmq::message_t msg (3);
> memcpy (msg.data (), "ABC", 3);
> s.send (msg);
>
> s.recv (&msg);
>
> Additionally, 0MQ/2.0 eliminates the need for zmq_server thus getting
> rid of the only single point of failure in the system.
>
> Also, fail-safe was replaced by reporting errors via standard POSIX errnos.
>
> As for now 0MQ/2.0 works on Linux and Windows. It can be used from C and
> C++, Java, Python and Ruby.
>
> Enjoy!
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090909/e85bf548/attachment.htm>


More information about the zeromq-dev mailing list