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. --- include/nng/nng.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 5b1cdaeb..43d293dc 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1159,8 +1159,6 @@ NNG_DECL int nng_stream_set_size(nng_stream *, const char *, size_t); NNG_DECL int nng_stream_set_uint64(nng_stream *, const char *, uint64_t); NNG_DECL int nng_stream_set_string(nng_stream *, const char *, const char *); NNG_DECL int nng_stream_set_ptr(nng_stream *, const char *, void *); -NNG_DECL int nng_stream_set_addr( - nng_stream *, const char *, const nng_sockaddr *); NNG_DECL int nng_stream_dialer_alloc(nng_stream_dialer **, const char *); NNG_DECL int nng_stream_dialer_alloc_url( -- cgit v1.2.3-70-g09d2