aboutsummaryrefslogtreecommitdiff
path: root/src/core/dialer.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-12-29 18:54:22 -0800
committerGarrett D'Amore <garrett@damore.org>2018-12-29 18:54:22 -0800
commit27b7827532abcbdbecc54795da5b5ac66e7f5e9f (patch)
tree7c8fad19dbb874af35324603204aae87f93d63b8 /src/core/dialer.c
parent5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c (diff)
downloadnng-27b7827532abcbdbecc54795da5b5ac66e7f5e9f.tar.gz
nng-27b7827532abcbdbecc54795da5b5ac66e7f5e9f.tar.bz2
nng-27b7827532abcbdbecc54795da5b5ac66e7f5e9f.zip
progress on IPC endpoints
Diffstat (limited to 'src/core/dialer.c')
-rw-r--r--src/core/dialer.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c
index a74f30f0..0c800333 100644
--- a/src/core/dialer.c
+++ b/src/core/dialer.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
@@ -412,6 +413,13 @@ nni_dialer_setopt(nni_dialer *d, const char *name, const void *val, size_t sz,
return (rv);
}
+ if (d->d_ops.d_setopt != NULL) {
+ int rv = d->d_ops.d_setopt(d->d_data, name, val, sz, t);
+ if (rv != NNG_ENOTSUP) {
+ return (rv);
+ }
+ }
+
for (o = d->d_ops.d_options; o && o->o_name; o++) {
if (strcmp(o->o_name, name) != 0) {
continue;
@@ -447,6 +455,12 @@ nni_dialer_getopt(
return (rv);
}
+ if (d->d_ops.d_getopt != NULL) {
+ int rv = d->d_ops.d_getopt(d->d_data, name, valp, szp, t);
+ if (rv != NNG_ENOTSUP) {
+ return (rv);
+ }
+ }
for (o = d->d_ops.d_options; o && o->o_name; o++) {
if (strcmp(o->o_name, name) != 0) {
continue;