aboutsummaryrefslogtreecommitdiff
path: root/src/core/url.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-09-07 16:45:17 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-05 17:48:36 -0700
commit94c88335f9de5090846504dfa5fc1656092efacf (patch)
treed47b1c0045632481db871fdeb5d2a1e0b747dcc3 /src/core/url.h
parent29aff2bacc9e2cfa6dcc52155d2816582617f918 (diff)
downloadnng-94c88335f9de5090846504dfa5fc1656092efacf.tar.gz
nng-94c88335f9de5090846504dfa5fc1656092efacf.tar.bz2
nng-94c88335f9de5090846504dfa5fc1656092efacf.zip
Introduce nni_url_to_address for common URL to sockaddr support.
This will be used in UDP. It also lets us reduce some unnecessary code paths for redundant library initialization.
Diffstat (limited to 'src/core/url.h')
-rw-r--r--src/core/url.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/url.h b/src/core/url.h
index e846bf37..1761f6fd 100644
--- a/src/core/url.h
+++ b/src/core/url.h
@@ -20,5 +20,6 @@ extern const char *nni_url_default_port(const char *);
extern int nni_url_asprintf(char **, const nni_url *);
extern int nni_url_asprintf_port(char **, const nni_url *, int);
extern size_t nni_url_decode(uint8_t *, const char *, size_t);
+extern int nni_url_to_address(nng_sockaddr *, const nni_url *);
#endif // CORE_URL_H