#include <nng/nng.h>
int nng_getopt(nng_socket s, const char *opt, void *val, size_t *valszp);
int nng_getopt_bool(nng_socket s, const char *opt, bool *bvalp);
int nng_getopt_int(nng_socket s, const char *opt, int *ivalp);
int nng_getopt_ms(nng_socket s, const char *opt, nng_duration *durp);
int nng_getopt_ptr(nng_socket s, const char *opt, void **ptr);
int nng_getopt_size(nng_socket s, const char *opt, size_t *zp);
int nng_getopt_string(nng_socket s, const char *opt, char **strp);
int nng_getopt_uint64(nng_socket s, const char *opt, uint64_t *u64p);