[zeromq-dev] UUIDs

Martin Sustrik sustrik at 250bpm.com
Mon Mar 15 08:55:58 CET 2010


Vitaly Mayatskikh wrote:
> At Thu, 11 Mar 2010 11:10:21 -0300, gonzalo diethelm wrote:
> 
>> Would there be interest in adding a utility function (next to
>> zmq_stopwatch_start ,zmq_stopwatch_stop and zmq_sleep) that would
>> generate a UUID and return it in printable format? 0MQ already has all
>> the code to do this, and it could be very handy for generating id fields
>> for processes, messages, etc.
> 
> IMHO, this feature is not related to messaging itself. Thus, exporting
> such function to messaging API will only trash it, and 0MQ will end
> being another AMQP.

Agreed.

Actually, the three portability functions in zmq.h (zmq_wait, 
zmq_start_stopwatch and zmq_stop_stopwatch) should be moved somewhere 
else also.

Martin



More information about the zeromq-dev mailing list