From 3b73756a5e5d075adfd03f5c49014094428d818f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 24 Dec 2016 15:54:44 -0800 Subject: Change in handling of extended info for messages. Instead of supplying a pipe, and expecting that the info there would be included we use nng_msg_getopt(). This will be enabled by the app asking for extended information by setting an option, we don't copy the data for every app (most won't care). This means we don't have to worry about reference counting the pipe for the life of associated messages. --- src/nng.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index 653fa3cf..5afbca8d 100644 --- a/src/nng.h +++ b/src/nng.h @@ -185,7 +185,6 @@ NNG_DECL void nng_msg_free(nng_msg *); NNG_DECL int nng_msg_realloc(nng_msg *, size_t); NNG_DECL void *nng_msg_header(nng_msg *, size_t *); NNG_DECL void *nng_msg_body(nng_msg *, size_t *); -NNG_DECL int nng_msg_pipe(nng_msg *, nng_pipe **); NNG_DECL int nng_msg_append(nng_msg *, const void *, size_t); NNG_DECL int nng_msg_prepend(nng_msg *, const void *, size_t); NNG_DECL int nng_msg_trim(nng_msg *, size_t); @@ -194,6 +193,7 @@ NNG_DECL int nng_msg_append_header(nng_msg *, const void *, size_t); NNG_DECL int nng_msg_prepend_header(nng_msg *, const void *, size_t); NNG_DECL int nng_msg_trim_header(nng_msg *, size_t); NNG_DECL int nng_msg_trunc_header(nng_msg *, size_t); +NNG_DECL int nng_msg_getopt(nng_msg *, int, void *, size_t *); // Pipe API. Generally pipes are only "observable" to applications, but // we do permit an application to close a pipe. This can be useful, for -- cgit v1.2.3-70-g09d2