#include <nng/nng.h> int nng_listener_start(nng_listener l, int flags);
nng_listener_start() function starts the listener l.
This causes the listener to bind to the address it was created with,
and to start accepting connections from remote
Each new connection results in an
which will be attached to the listener’s socket.
Normally, the act of “binding” to its address is done
synchronously, including any necessary name resolution.
As a result,
a failure, such as if the address is already in use, will be returned
However, if the special value
supplied in flags, then this is done asynchronously; furthermore any
failure to bind will be periodically reattempted in the background.
Once a listener has started, it is generally not possible to change its configuration.
This function returns 0 on success, and non-zero otherwise.
Parameter l does not refer to an open listener.
The listener l is already started.