aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-21 22:26:22 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-21 22:26:22 -0800
commit7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62 (patch)
tree342050510f6a8770c164042e692a2d8f975f92c0 /include
parent8abf99028c3c3d26f0eba76fa4b3437c082a8874 (diff)
downloadnng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.tar.gz
nng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.tar.bz2
nng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.zip
Use 32-bit port numbers.
While TCP and UDP port numbers are 16-bits, ZT uses a larger (24-bit) port number.
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h5
1 files changed, 3 insertions, 2 deletions
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 *);