diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-12-29 16:16:57 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-12-29 16:16:57 -0800 |
| commit | 5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c (patch) | |
| tree | 24c383103cc3ff3e98e2e8179d0633e9b2f6010a /src/supplemental/ipc/ipc.c | |
| parent | d3bd35ab49ad74528fd9e34cce9016d74dd91943 (diff) | |
| download | nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.gz nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.tar.bz2 nng-5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c.zip | |
IPC option rework (pipe/conn) to reduce code duplication.
Diffstat (limited to 'src/supplemental/ipc/ipc.c')
| -rw-r--r-- | src/supplemental/ipc/ipc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/supplemental/ipc/ipc.c b/src/supplemental/ipc/ipc.c index 36c18563..f5e590fc 100644 --- a/src/supplemental/ipc/ipc.c +++ b/src/supplemental/ipc/ipc.c @@ -54,13 +54,15 @@ nng_ipc_recv(nng_ipc *ipc, nng_aio *aio) int nng_ipc_setopt(nng_ipc *ipc, const char *name, const void *val, size_t sz) { - return (nni_ipc_conn_setopt((void *) ipc, name, val, sz)); + return ( + nni_ipc_conn_setopt((void *) ipc, name, val, sz, NNI_TYPE_OPAQUE)); } int nng_ipc_getopt(nng_ipc *ipc, const char *name, void *val, size_t *szp) { - return (nni_ipc_conn_getopt((void *) ipc, name, val, szp)); + return (nni_ipc_conn_getopt( + (void *) ipc, name, val, szp, NNI_TYPE_OPAQUE)); } int |
