[zeromq-dev] 0MQ/1.0 and 0MQ/2.0 (0sockets) comparison

Martin Sustrik sustrik at fastmq.com
Fri Aug 14 11:35:03 CEST 2009


Steven McCoy wrote:
> 2009/8/13 Martin Sustrik <sustrik at fastmq.com>:
>> Error handling
>>
>> ØMQ/1.0	Fail-fast.
>> Problems	Annoying, and prohibitive for applications with low reliability requirements.
>> ØMQ/2.0	POSIX error codes.
>> Benefits	Can be used in any environment, not depending on what the reliability requirements are.
> 
> This is ok as long as the range of errors is minimal.  In OpenPGM I've
> decided to follow GLib error handling which makes for more apparent
> status report and cross platform compatible error codes, together with
> l10n friendly error strings.

Right. The set of errors should be minimal. So far there are two 
classes of errors:

1. Invalid arguments
2. Resource shortage

Martin




More information about the zeromq-dev mailing list