From 561fc87c4ae15d2349d9169fbd340d649a364ebd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 4 Jan 2025 18:22:27 -0800 Subject: 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 --- include/nng/nng.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2