aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index fc57c037..225bf074 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -83,6 +83,18 @@ nng_setopt(nng_socket *s, int opt, const void *val, size_t sz)
}
+int
+nng_getopt(nng_socket *s, int opt, void *val, size_t *szp)
+{
+ int rv;
+
+ if ((rv == nni_init()) != 0) {
+ return (rv);
+ }
+ return (nni_socket_getopt(s, opt, val, szp));
+}
+
+
// Misc.
const char *
nng_strerror(int num)