From 72b96ad6925634e1b4efa775ffbed436b0a29abd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 26 Oct 2025 10:02:33 -0700 Subject: NNG_OPT_BOUND_PORT replaces NNG_OPT_TCP/UDP_BOUND_PORT. This is easier and agnostic about the underlying L3 protocol. We plan to remove direct NNG_OPT_LOCADDR support from listeners (and probably both NNG_OPT_LOCADDR and NNG_OPT_REMADDR have numbered days left in their lifetime. They will be replaced with more direct typed access functions as has been done for pipes already.) While here fixed some include for IWYU in the POSIX platform. --- src/testing/marry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testing') diff --git a/src/testing/marry.c b/src/testing/marry.c index a197fb01..2c5723db 100644 --- a/src/testing/marry.c +++ b/src/testing/marry.c @@ -374,7 +374,7 @@ nuts_marry_ex( if ((strstr(url, ":0") != NULL) && // If a TCP port of zero was selected, let's ask for the actual // port bound. - (nng_listener_get_int(l, NNG_OPT_TCP_BOUND_PORT, &port) == 0) && + (nng_listener_get_int(l, NNG_OPT_BOUND_PORT, &port) == 0) && (port > 0)) { replace_port_zero(url, addr, port); url = addr; -- cgit v1.2.3-70-g09d2