#include <nng/nng.h> void nng_stream_close(nng_stream *s);
|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_stream_close - close byte stream
nng_stream_close() function closes the
byte stream s.
If any operations are pending, such as
they will be terminated with
NNG_ECLOSED error condition.
Also, any new operations will fail with
NNG_ECLOSED after the connection
|Closing the connection while data is in transmission will likely lead to loss of that data. There is no automatic linger or flush to ensure that the socket send buffers have completely transmitted.|
Closing the connection does not free the resources associated with it.
Once it is certain that no more operations are pending on the connection,
it should be freed with