diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-04 18:22:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-04 18:22:27 -0800 |
| commit | 561fc87c4ae15d2349d9169fbd340d649a364ebd (patch) | |
| tree | 139296a35483f1caaa147d1a7e1d8e8b95c64b1d /include | |
| parent | 0260bd8f717a430e5327af4cce8f9431710ab233 (diff) | |
| download | nng-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 'include')
| -rw-r--r-- | include/nng/nng.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h index 8a2eda36..e5e6cf7d 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1706,6 +1706,10 @@ NNG_DECL void nng_cv_wake(nng_cv *); // that no waiter starves forever. NNG_DECL void nng_cv_wake1(nng_cv *); +// New URL accessors for endpoints - from NNG 2.0. +NNG_DECL int nng_dialer_get_url(nng_dialer, const nng_url **); +NNG_DECL int nng_listener_get_url(nng_listener, const nng_url **); + #ifdef __cplusplus } #endif |
