summaryrefslogtreecommitdiff
path: root/src/core/dialer.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-04 18:22:27 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-04 18:22:27 -0800
commit561fc87c4ae15d2349d9169fbd340d649a364ebd (patch)
tree139296a35483f1caaa147d1a7e1d8e8b95c64b1d /src/core/dialer.h
parent0260bd8f717a430e5327af4cce8f9431710ab233 (diff)
downloadnng-561fc87c4ae15d2349d9169fbd340d649a364ebd.tar.gz
nng-561fc87c4ae15d2349d9169fbd340d649a364ebd.tar.bz2
nng-561fc87c4ae15d2349d9169fbd340d649a364ebd.zip
api: introduce NNG 2.0 compatible nng_dialer_get_url and nng_listener_get_url
This is meant to help applications start adopting new interfaces before converting to NNG 2.0
Diffstat (limited to 'src/core/dialer.h')
-rw-r--r--src/core/dialer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/dialer.h b/src/core/dialer.h
index 7bc1547d..619a2101 100644
--- a/src/core/dialer.h
+++ b/src/core/dialer.h
@@ -1,5 +1,5 @@
//
-// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2018 Devolutions <info@devolutions.net>
//
@@ -25,6 +25,7 @@ extern int nni_dialer_setopt(
nni_dialer *, const char *, const void *, size_t, nni_type);
extern int nni_dialer_getopt(
nni_dialer *, const char *, void *, size_t *, nni_type);
+extern const nng_url *nni_dialer_url(nni_dialer *);
extern void nni_dialer_add_stat(nni_dialer *, nni_stat_item *);
extern void nni_dialer_bump_error(nni_dialer *, int);