blob: 2d1b0a019143fdb7c50c7a604e8d92691a393c05 [file] [log] [blame]
nn_init(3)
==========
NAME
----
nn_init - initialise the nanomsg library
SYNOPSIS
--------
*#include <nanomsg/nn.h>*
*int nn_init (void);*
DESCRIPTION
-----------
This function initialises the nanomsg library. If the library was already
initialised it does nothing. The global state of the library is deallocated only
when each _nn_init()_ is matched by a corresponding _nn_term()_.
RETURN VALUE
------------
Returns zero in case of success. Returns negative value in case of error and
sets 'errno' to to one of the values defined below.
ERRORS
------
No errors are defined.
SEE ALSO
--------
linknanomsg:nn_term[3]
linknanomsg:nanomsg[7]
AUTHORS
-------
Martin Sustrik <sustrik@250bpm.com>