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/platform/posix/posix_ipcdial.c | |
| 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/platform/posix/posix_ipcdial.c')
| -rw-r--r-- | src/platform/posix/posix_ipcdial.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/platform/posix/posix_ipcdial.c b/src/platform/posix/posix_ipcdial.c index 3d0ad0d8..d3dc2109 100644 --- a/src/platform/posix/posix_ipcdial.c +++ b/src/platform/posix/posix_ipcdial.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 @@ -10,8 +11,6 @@ #include "core/nng_impl.h" -#ifdef NNG_PLATFORM_POSIX - #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> @@ -235,4 +234,22 @@ error: nni_aio_finish_error(aio, rv); } -#endif // NNG_PLATFORM_POSIX +static const nni_option ipc_dialer_options[] = { + { + .o_name = NULL, + }, +}; + +int +nni_ipc_dialer_getopt( + nni_ipc_dialer *d, const char *name, void *buf, size_t *szp, nni_type t) +{ + return (nni_getopt(ipc_dialer_options, name, d, buf, szp, t)); +} + +int +nni_ipc_dialer_setopt(nni_ipc_dialer *d, const char *name, const void *buf, + size_t sz, nni_type t) +{ + return (nni_setopt(ipc_dialer_options, name, d, buf, sz, t)); +}
\ No newline at end of file |
