From c3e062661388f70386d6766e3ce648030af340ee Mon Sep 17 00:00:00 2001 From: Jake Woltersdorf Date: Mon, 4 Mar 2019 12:35:19 +0800 Subject: fixes #901 shorter option get/set functions for all types - Renamed internal nng_*_getx/setx methods with "nni" prefix - Moved stream get/set option definition macros to options.h and added "NNI_" prefix - "_PTR" variant of get/set option definition macros is for when first arg is passed as pointer (`nng_stream *s` vs `nng_pipe s`) - New get/set option functions for `nng_socket` are `nng_socket_get_X` eschewing the previous `nng_getopt` pattern - Macro-fy legacy getopt/setopt and implement in terms of "new" API - nng_setopt* use "new" shorter API. Add missing uint64 set functions. - Shorter get/set option functions get own man page and old getopt/setopt link to them - Built with -DNNG_ENABLE_DOC=ON and part of central libnng index - Update copyright --- docs/man/nng_setopt.3.adoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/man/nng_setopt.3.adoc') diff --git a/docs/man/nng_setopt.3.adoc b/docs/man/nng_setopt.3.adoc index b3b1d3b5..1a3eb233 100644 --- a/docs/man/nng_setopt.3.adoc +++ b/docs/man/nng_setopt.3.adoc @@ -1,6 +1,6 @@ = nng_setopt(3) // -// Copyright 2018 Staysail Systems, Inc. +// Copyright 2019 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This document is supplied under the terms of the MIT License, a @@ -34,9 +34,13 @@ int nng_setopt_size(nng_socket s, const char *opt, size_t z); int nng_setopt_string(nng_socket s, const char *opt, const char *str); int nng_setopt_uint64(nng_socket s, const char *opt, uint64_t u64); + ---- == DESCRIPTION + +NOTE: These functions are deprecated. Please see xref:nng_socket_set.3.adoc[nng_socket_set]. + (((options, socket))) The `nng_setopt()` functions are used to configure options for the socket _s_. -- cgit v1.2.3-70-g09d2