From caa0c875339badd5a0da38aee9605a40cb7e9d83 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 28 Oct 2024 15:04:08 -0700 Subject: streams: drop some stream set functions We don't need nng_stream_set_addr nor nng_stream_set_ptr. These methods are simply not useful for streams, which have their properties established at creation time. Arguably in fact, all of nng_stream_set_* could go away -- the only properties it is implemented for are TCP keepalive and nodelay tuning, and those should be reasonably set by the creator of the stream. --- src/core/stream.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/core/stream.c') diff --git a/src/core/stream.c b/src/core/stream.c index 2807f37f..fce1e45e 100644 --- a/src/core/stream.c +++ b/src/core/stream.c @@ -513,12 +513,6 @@ nng_stream_set_string(nng_stream *s, const char *n, const char *v) s, n, v, v == NULL ? 0 : strlen(v) + 1, NNI_TYPE_STRING)); } -int -nng_stream_set_addr(nng_stream *s, const char *n, const nng_sockaddr *v) -{ - return (nni_stream_set(s, n, v, sizeof(*v), NNI_TYPE_SOCKADDR)); -} - int nng_stream_dialer_set( nng_stream_dialer *d, const char *n, const void *v, size_t sz) -- cgit v1.2.3-70-g09d2