From 11485d2723f22dc60e4cefea3ffb3fd8a378d931 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 3 Nov 2024 09:46:54 -0800 Subject: Remove untyped nng_socket_get and nng_socket_set. --- docs/man/nng_socket_set.3.adoc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'docs/man/nng_socket_set.3.adoc') diff --git a/docs/man/nng_socket_set.3.adoc b/docs/man/nng_socket_set.3.adoc index aa5784f3..bd3f7f47 100644 --- a/docs/man/nng_socket_set.3.adoc +++ b/docs/man/nng_socket_set.3.adoc @@ -1,6 +1,6 @@ = nng_socket_set(3) // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This document is supplied under the terms of the MIT License, a @@ -19,8 +19,6 @@ nng_socket_set - set socket option ---- #include -int nng_socket_set(nng_socket s, const char *opt, const void *val, size_t valsz); - int nng_socket_set_bool(nng_socket s, const char *opt, bool bval); int nng_socket_set_int(nng_socket s, const char *opt, int ival); @@ -34,12 +32,11 @@ int nng_socket_set_size(nng_socket s, const char *opt, size_t z); int nng_socket_set_string(nng_socket s, const char *opt, const char *str); int nng_socket_set_uint64(nng_socket s, const char *opt, uint64_t u64); - ---- == DESCRIPTION (((options, socket))) -The `nng_socket_set()` functions are used to configure options for +The `nng_socket_set` functions are used to configure options for the socket _s_. The actual options that may be configured in this way vary, and are specified by _opt_. @@ -57,13 +54,6 @@ xref:nng_listener_set.3.adoc[nng_listener_get] for specific dialers or listeners The details of the type, size, and semantics of the option will depend on the actual option, and is documented with the option itself. -`nng_socket_set()`:: -This function is untyped, and can be used to configure any arbitrary data. -The _val_ pointer addresses the data to copy, and _valsz_ is the -size of the objected located at _val_. - -TIP: It may be easier to use one of the typed forms of this function. - `nng_socket_set_bool()`:: This function is for options which take a Boolean (`bool`). The _bval_ is passed to the option. -- cgit v1.2.3-70-g09d2