diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-12-29 19:29:14 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-12-31 14:20:08 -0800 |
| commit | 97118a423a48ecea816f37cb86378c5bafba2d51 (patch) | |
| tree | df9e70d0e5e48f3ab69ca3351171003c2b63ed38 /src/transport | |
| parent | 27b7827532abcbdbecc54795da5b5ac66e7f5e9f (diff) | |
| download | nng-97118a423a48ecea816f37cb86378c5bafba2d51.tar.gz nng-97118a423a48ecea816f37cb86378c5bafba2d51.tar.bz2 nng-97118a423a48ecea816f37cb86378c5bafba2d51.zip | |
fixes #834 Simplify IPC internal API & update
This also makes some smaller related changes to use the new
nni_type instead of nni_opt_type.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/ipc/ipc.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index 1f8f27c4..87764023 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -1,6 +1,7 @@ // // Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> +// Copyright 2018 Devolutions <info@devolutions.net> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -13,7 +14,8 @@ #include <string.h> #include "core/nng_impl.h" -#include "nng/transport/ipc/ipc.h" + +#include <nng/transport/ipc/ipc.h> // IPC transport. Platform specific IPC operations must be // supplied as well. Normally the IPC is UNIX domain sockets or @@ -872,18 +874,6 @@ ipctran_ep_accept(void *arg, nni_aio *aio) } static int -ipctran_ep_get_locaddr(void *arg, void *buf, size_t *szp, nni_opt_type t) -{ - ipctran_ep *ep = arg; - int rv; - - nni_mtx_lock(&ep->mtx); - rv = nni_copyout_sockaddr(&ep->sa, buf, szp, t); - nni_mtx_unlock(&ep->mtx); - return (rv); -} - -static int ipctran_pipe_getopt( void *arg, const char *name, void *buf, size_t *szp, nni_type t) { |
