= nng_stream_listener(5)
//
// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2019 Devolutions <info@devolutions.net>
//
// This document is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt).  A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.
//

== NAME

nng_stream_listener - byte stream listener

== SYNOPSIS

[source, c]
----
#include <nng/nng.h>

typedef struct nng_stream_listener nng_stream_listener;
----

== DESCRIPTION

(((IPC, listener)))
An `nng_stream_listener` is a handle to a byte stream listener,
which is responsible for accepting incoming connections and creating
corresponding
xref:nng_stream.5.adoc[`nng_stream`] from them.

NOTE: The `nng_stream_listener` object is a low-level object for
raw byte stream connections,
and should not be confused with a high-level
xref:nng_listener.5.adoc[`nng_listener`] object.

== SEE ALSO

[.text-left]
xref:nng_stream_listener_accept.3str.adoc[nng_stream_listener_accept(3str)],
xref:nng_stream_listener_alloc.3str.adoc[nng_stream_listener_alloc(3str)],
xref:nng_stream_listener_close.3str.adoc[nng_stream_listener_close(3str)],
xref:nng_stream_listener_free.3str.adoc[nng_stream_listener_free(3str)],
xref:nng_stream_listener_listen.3str.adoc[nng_stream_listener_listen(3str)],
xref:nng_stream.5.adoc[nng_stream(5)],
xref:nng_stream_dialer.5.adoc[nng_stream_dialer(5)]
