[zeromq-dev] Recovering POSIX errno
Derek Developer
derekdeveloper at yahoo.com
Mon Apr 12 04:36:47 CEST 2010
>From the docs:
" The ØMQ library functions handle errors using the standard conventions found on
POSIX systems. Generally, this means that upon failure a ØMQ library function
shall return either a NULL value (if returning a pointer) or a negative value
(if returning an integer), and the actual error code shall be stored in the
errno variable.
A zmq_strerror() function is provided to translate ØMQ-specific error codes
into error message strings. "
I have never worked with POSIX in the windows environment, so forgive my ignorance, but how do you reciover these error codes from langauges outside of the MS C/C++/C# environments please?
If I may suggest, wouldn't it be more usefull to have a function in the ZMQ library that you call directly to recover these error codes? Seems like most libraries offer this. In fact if you could point me in the right direction, I might write one.
I am having trouble calling zmq_init() and after four hours of reading about POSIX am no closer to recovering the error code to know why. I am running on WinXPSP3 for testing. I assume this is supported.
I probaby have made some translation error, but I am stumped when it comes to recovering the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100411/ee7d44dd/attachment.htm>
More information about the zeromq-dev
mailing list