nanomsg
Home Download Documentation Development Community Support
NOTE: This documentation is for version 0.2-alpha of nanomsg, but the latest released version is 1.1.5. Please see the documentation for 1.1.5 for the most up-to-date information.
nn_strerror(3)

SYNOPSIS

#include <nanomsg/nn.h>

const char *nn_strerror (int errnum);

DESCRIPTION

Converts error number (errno) into a human-readable string. As opposed to strerror(3) this function handles nanomsg-specific errors in addition to standard system errors.

RETURN VALUE

Return error message string.

ERRORS

No errors are defined.

EXAMPLE

rc = nn_send (s, "ABC", 3, 0);
if (rc < 0)
    printf ("nn_send failed: %s\n", nn_strerror (errno));

SEE ALSO

AUTHORS

Martin Sustrik <sustrik@250bpm.com>


"nanomsg" is a trademark of Garrett D'Amore.