aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/platform.h2
-rw-r--r--src/core/url.c2
-rw-r--r--src/core/url.h2
3 files changed, 3 insertions, 3 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.
diff --git a/src/core/url.c b/src/core/url.c
index 7af6a822..e436b0e1 100644
--- a/src/core/url.c
+++ b/src/core/url.c
@@ -697,7 +697,7 @@ nng_url_scheme(const nng_url *url)
return (url->u_scheme);
}
-uint16_t
+uint32_t
nng_url_port(const nng_url *url)
{
return (url->u_port);
diff --git a/src/core/url.h b/src/core/url.h
index 0f5f33c9..5aa53dfd 100644
--- a/src/core/url.h
+++ b/src/core/url.h
@@ -18,7 +18,7 @@ struct nng_url {
const char *u_scheme; // never NULL
const char *u_userinfo; // will be NULL if not specified
char *u_hostname; // name only, will be "" if not specified
- uint16_t u_port; // port, may be zero for schemes that do not use
+ uint32_t u_port; // port, may be zero for schemes that do not use
char *u_path; // path, will be "" if not specified
char *u_query; // without '?', will be NULL if not specified
char *u_fragment; // without '#', will be NULL if not specified