nng_stream_dialer_set(3str)
| NNG_STREAM_DIALER_SET(3str) | NNG Reference Manual | NNG_STREAM_DIALER_SET(3str) |
NAME
nng_stream_dialer_set - set option on byte stream dialer
SYNOPSIS
#include <nng/nng.h> int nng_stream_dialer_set(nng_stream_dialer *d, const char *name, const void *data, size_t size); int nng_stream_dialer_set_bool(nng_stream_dialer *d, const char *opt, bool val); int nng_stream_dialer_set_int(nng_stream_dialer *d, const char *opt, int val); int nng_stream_dialer_set_ms(nng_stream_dialer *d, const char *opt, nng_duration val); int nng_stream_dialer_set_ptr(nng_stream_dialer *d, const char *opt, void *val); int nng_stream_dialer_set_size(nng_stream_dialer *d, const char *opt, size_t val); int nng_stream_dialer_set_string(nng_stream_dialer *d, const char *opt, const char *val); int nng_stream_dialer_set_uint64(nng_stream_dialer *d, const char *opt, uint64_t val); int nng_stream_dialer_set_addr(nng_stream_dialer *d, const char *opt, const nng_sockaddr *val);
DESCRIPTION
The nng_stream_dialer_set() functions are used to configure options for the byte stream dialer d. The actual options that may be configured in this way vary, and are specified by opt. A number of them are documented in nng_options(5).
Additionally some transport-specific and protocol-specific options are documented with the transports and protocols themselves.
Forms
The details of the type, size, and semantics of the option will depend on the actual option, and will be documented with the option itself.
nng_stream_dialer_set()
Note
This function is deprecated and will be removed in a future
release.
Use one of the typed functions below instead.
nng_stream_dialer_set_bool()
nng_stream_dialer_set_int()
nng_stream_dialer_set_ms()
nng_stream_dialer_set_ptr()
Note
This form is somewhat special in that the object is generally
not copied, but instead the pointer to the object is copied. Please see
the documentation for the specific option for further details.
nng_stream_dialer_set_size()
nng_stream_dialer_set_string()
nng_stream_dialer_set_uint64()
nng_stream_dialer_set_addr()
RETURN VALUES
This function returns 0 on success, and non-zero otherwise.
ERRORS
NNG_ECLOSED
NNG_EINVAL
NNG_ENOTSUP
NNG_EREADONLY
SEE ALSO
nng_strerror(3), nng_stream_dialer_get(3str), nng_options(5), nng_ipc_options(5), nng_tcp_options(5), nng_tls_options(5), nng_stream_dialer(5)
| 2026-05-29 |
