diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-28 15:04:08 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-28 15:04:08 -0700 |
| commit | caa0c875339badd5a0da38aee9605a40cb7e9d83 (patch) | |
| tree | 8a544d3c12fb6129603cfe9b8587190427d2750b /src/core/stream.c | |
| parent | 1401d2f622e52f0ca4e68fc932ded4f96801989f (diff) | |
| download | nng-caa0c875339badd5a0da38aee9605a40cb7e9d83.tar.gz nng-caa0c875339badd5a0da38aee9605a40cb7e9d83.tar.bz2 nng-caa0c875339badd5a0da38aee9605a40cb7e9d83.zip | |
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.
Diffstat (limited to 'src/core/stream.c')
| -rw-r--r-- | src/core/stream.c | 6 |
1 files changed, 0 insertions, 6 deletions
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 @@ -514,12 +514,6 @@ nng_stream_set_string(nng_stream *s, const char *n, const char *v) } 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) { |
