diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-09-07 16:45:17 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-05 17:48:36 -0700 |
| commit | 94c88335f9de5090846504dfa5fc1656092efacf (patch) | |
| tree | d47b1c0045632481db871fdeb5d2a1e0b747dcc3 /src/core/url.h | |
| parent | 29aff2bacc9e2cfa6dcc52155d2816582617f918 (diff) | |
| download | nng-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.h | 1 |
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 |
