From 64de60d98e8e4a896f9d13e4aa70343f329d88b4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 25 Dec 2016 11:18:27 -0800 Subject: Change entry points in transports to bind() and connect(). This was done as these entry points are more clearly associated with single function transport routines like those from BSD sockets, unlike our higher level dial() and listen() APIs that do accept() or reconnect in loops. --- src/nng.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index eb08991a..8cf0d04f 100644 --- a/src/nng.c +++ b/src/nng.c @@ -102,6 +102,7 @@ nng_dial(nng_socket *s, const char *addr, nng_endpt **epp, int flags) return (nni_socket_dial(s, addr, epp, flags)); } + int nng_setopt(nng_socket *s, int opt, const void *val, size_t sz) { @@ -166,6 +167,7 @@ int nng_pipe_getopt(nng_pipe *pipe, int opt, void *val, size_t *sizep) { int rv; + NNI_INIT_INT(); rv = nni_pipe_getopt(pipe, opt, val, sizep); if (rv == ENOTSUP) { -- cgit v1.2.3-70-g09d2