diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-04-08 20:18:34 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-04-08 20:18:34 -0700 |
| commit | 1a66ecd1098d4d8e10806e32741acc35a6d08f8d (patch) | |
| tree | 9b651cfd0d9d1fa2b316a3236eba7f2d264e3566 /docs/ref/str/nng_stream_dialer_close.adoc | |
| parent | c7f7bcb6e2cfbf66c7fab158b0ac02890243b5bb (diff) | |
| download | nng-doc-reorg.tar.gz nng-doc-reorg.tar.bz2 nng-doc-reorg.zip | |
nng_stream_* converteddoc-reorg
Diffstat (limited to 'docs/ref/str/nng_stream_dialer_close.adoc')
| -rw-r--r-- | docs/ref/str/nng_stream_dialer_close.adoc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/ref/str/nng_stream_dialer_close.adoc b/docs/ref/str/nng_stream_dialer_close.adoc new file mode 100644 index 00000000..637f20e1 --- /dev/null +++ b/docs/ref/str/nng_stream_dialer_close.adoc @@ -0,0 +1,26 @@ +## nng_stream_dialer_close + +Close byte stream dialer. + +### Synopsis + +```c +#include <nng/nng.h> + +void nng_stream_dialer_close(nng_stream_dialer *d); +``` + +### Description + +The `nng_stream_dialer_close` function closes the supplied byte stream dialer _d_, +but does not free the underlying resources associated with it. + +Any pending or new operations using _d_ will fail with an `NNG_ECLOSED` error condition. + +NOTE: This function does not release the memory for the dialer, so the application should still free the memory using xref:nng_stream_dialer_free.adoc[`nng_stream_dialer_free`] once it is certain that nothing else is using it. + +### See Also + +xref:nng_stream_dialer_alloc.adoc[nng_stream_dialer_alloc], +xref:nng_stream_dialer_dial.adoc[nng_stream_dialer_dial], +xref:nng_stream_dialer_free.adoc[nng_stream_dialer_free] |
