diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-21 22:26:22 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-21 22:26:22 -0800 |
| commit | 7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62 (patch) | |
| tree | 342050510f6a8770c164042e692a2d8f975f92c0 /src/core/platform.h | |
| parent | 8abf99028c3c3d26f0eba76fa4b3437c082a8874 (diff) | |
| download | nng-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 'src/core/platform.h')
| -rw-r--r-- | src/core/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/platform.h b/src/core/platform.h index 783cc9fc..0249e2a0 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -353,7 +353,7 @@ extern int nni_parse_ip_port(const char *, nng_sockaddr *); // nni_get_port_by_name resolves a name (which may be an ASCII representation // of a number) to a port number (the value returned is in native byte order.) -extern int nni_get_port_by_name(const char *, uint16_t *); +extern int nni_get_port_by_name(const char *, uint32_t *); // // IPC (UNIX Domain Sockets & Named Pipes) Support. |
