nn_errno man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

NN_ERRNO(3)			nanomsg manual			   NN_ERRNO(3)

NAME
       nn_errno - retrieve the current errno

SYNOPSIS
       #include <nanomsg/nn.h>

       int nn_errno (void);

DESCRIPTION
       Returns value of errno for the current thread.

       On most systems, errno can be accessed directly and this function is
       not needed. However, on Windows, there are multiple implementations of
       the CRT library (single-threaded, multi-threaded, release, debug) and
       each of them has its own instance of errno. Thus, if nanomsg library
       and the application that uses it link with different versions of CRT
       library, they don’t share same instance of errno. Consequently, error
       codes set by nanomsg cannot be accessed by the application. To overcome
       this problem, application can use nn_errno() function to retrieve the
       nanomsg’s value of errno.

RETURN VALUE
       Returns value of errno for the current thread.

ERRORS
       No errors are defined.

EXAMPLE
	   rc = nn_send (s, "ABC", 3, 0);
	   if (rc < 0)
	       printf ("nn_send failed with error code %d\n", nn_errno ());

SEE ALSO
       nn_strerror(3) nanomsg(7)

AUTHORS
       Martin Sustrik <sustrik@250bpm.com[1]>

NOTES
	1. sustrik@250bpm.com
	   mailto:sustrik@250bpm.com

nanomsg Unknown			  12/23/2015			   NN_ERRNO(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net