From edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b Mon Sep 17 00:00:00 2001
From: gdamore Before using other interfaces in this library, it is necessary to initialize
the library. The The function is idempotent, although on tear down, every call to Further, only the first call to this function may have a value of params other than nng_init function performs this initialization.nng_init must
-be paired with a call to nng_fini or no resources will be released.
+be paired with a call to nng_fini or no resources will be released.
This allows for libraries consuming these interfaces to safely initialize and finalize
the library without disrupting other consumers in the same process.NULL.
If params is not NULL, and the library has already been intiazed, then nng_init will
-return NNG_EBUSY.NNG_EBUSY.
In some cases it is desirable to tune certain runtime parameters for the library, which
can be done by supplying a non-NULL params argument.
When the consumer is ready to deallocate any resources allocated by the library, it should call
the nng_fini function. Each call to nng_fini should be paired with an earlier call to
-nng_init.
nng_init.
After calling nng_fini, the consuming application must not make any other calls to NNG functions,
except that it may use nng_init to initialize the application for further use.