From 7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 21 Nov 2024 22:26:22 -0800 Subject: Use 32-bit port numbers. While TCP and UDP port numbers are 16-bits, ZT uses a larger (24-bit) port number. --- include/nng/nng.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 8b56d15a..f6b0a179 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1103,8 +1103,9 @@ NNG_DECL int nng_url_sprintf(char *, size_t, const nng_url *); NNG_DECL const char *nng_url_scheme(const nng_url *); -// Port (TCP) for a URL, can be zero for ports are not used by the scheme. -NNG_DECL uint16_t nng_url_port(const nng_url *); +// Port (such as UDP or TCP) for a URL, can be zero for ports are not used by +// the scheme. +NNG_DECL uint32_t nng_url_port(const nng_url *); // hostname part of URL, can be NULL if irerelvant to scheme const char *nng_url_hostname(const nng_url *); -- cgit v1.2.3-70-g09d2