From e236dc8141f4d00dc926fbfba7739dabf96ebcdd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 20 Sep 2017 12:11:53 -0700 Subject: More pipe option handling, pipe API support. Url option. This fleshes most of the pipe API out, making it available to end user code. It also adds a URL option that is independent of the address options (which would be sockaddrs.) Also, we are now setting the pipe for req/rep. The other protocols need to have the same logic added to set the receive pipe on the message. (Pair is already done.) --- src/core/options.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/options.h') diff --git a/src/core/options.h b/src/core/options.h index ed091703..64036db1 100644 --- a/src/core/options.h +++ b/src/core/options.h @@ -44,6 +44,9 @@ extern int nni_getopt_u64(uint64_t, void *, size_t *); // nni_getopt_str gets a C style string. extern int nni_getopt_str(const char *, void *, size_t *); +// nni_getopt_sockaddr gets an nng_sockaddr. +extern int nni_getopt_sockaddr(const nng_sockaddr *, void *, size_t *); + // nni_setopt_size sets a size_t option. extern int nni_setopt_size(size_t *, const void *, size_t, size_t, size_t); -- cgit v1.2.3-70-g09d2