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

Martin Sustrik sustrik at fastmq.com
Wed Sep 9 14:55:29 CEST 2009


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



More information about the zeromq-dev mailing list