diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-25 11:18:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-25 11:18:27 -0800 |
| commit | 64de60d98e8e4a896f9d13e4aa70343f329d88b4 (patch) | |
| tree | 7e1ce1cf40ff6f53f518b26c87db0f93f2e8c841 /src/nng.c | |
| parent | 2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca (diff) | |
| download | nng-64de60d98e8e4a896f9d13e4aa70343f329d88b4.tar.gz nng-64de60d98e8e4a896f9d13e4aa70343f329d88b4.tar.bz2 nng-64de60d98e8e4a896f9d13e4aa70343f329d88b4.zip | |
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.
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |
