--- version: tip layout: refman --- nng_tls_dialer_setopt(3tls)

SYNOPSIS

#include <nng/nng.h>
#include <nng/supplemental/tls/tls.h>

int nng_tls_dialer_setopt(nng_tls_dialer *d, const char *name, const void *data, size_t size);

DESCRIPTION

The nng_tls_dialer_setopt() is used to set the option name for the TLS dialer d. The value to set is copied from data, which should be size bytes in length.

RETURN VALUES

This function returns 0 on success, and non-zero otherwise.

ERRORS

NNG_ECLOSED

The dialer is closed.

NNG_EINVAL

Either data or size are invalid.

NNG_ENOTSUP

The option name is not supported.

NNG_EREADONLY

The option name may not be modified.

SEE ALSO