#include <nng/nng.h> typedef struct nng_listener_s nng_listener;
|This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nng_listener - listener
nng_listener is a handle to a listener object, which is responsible for
nng_pipe objects by accepting incoming connections.
A given listener object may create many pipes at the same time, much like an
HTTP server can have many connections to multiple clients simultaneously.
|The client/server relationship described by dialer/listener is completely orthogonal to any similar relationship in the protocols. For example, a rep socket may use a dialer to connect to a listener on an req socket. This orthogonality can lead to innovative solutions to otherwise challenging communications problems.|
Listener objects may be destroyed by the
They are also closed when their associated socket is closed.
A listener may be initialized using the macro
before it is opened, to prevent confusion with valid open listener.