diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-26 10:54:58 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-27 07:13:40 -0700 |
| commit | be13c2e8845423cec17af429fc4e16a5d9749e47 (patch) | |
| tree | 82614e403a41aac6581a9a223ef9eba5be557222 /src/core/pipe.c | |
| parent | 11c53f3d7f747d14fd69ce98c63d629bc821ef68 (diff) | |
| download | nng-be13c2e8845423cec17af429fc4e16a5d9749e47.tar.gz nng-be13c2e8845423cec17af429fc4e16a5d9749e47.tar.bz2 nng-be13c2e8845423cec17af429fc4e16a5d9749e47.zip | |
Replace nng_pipe_get_addr, nng_stream_get_addr, and the NNG_OPT_REMADDR option.
More direct access methods are provided instead.
This results in much lower friction when using, and is a step on the path
to removing NNG_OPT_LOCADDR as well.
We need to figure a solution for NNG_OPT_LOCADDR for dialers; for
listeners there is little use in it either, and it will be removed.
(Dialers will probably get a new NNG_OPT_BIND_IP option.)
Diffstat (limited to 'src/core/pipe.c')
| -rw-r--r-- | src/core/pipe.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c index 6a3a2e21..120853dc 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -347,13 +347,6 @@ nni_pipe_getopt( if (rv != NNG_ENOTSUP) { return (rv); } - if (strcmp(name, NNG_OPT_REMADDR) == 0) { - return ( - nni_copyout_sockaddr(nni_pipe_peer_addr(p), val, szp, t)); - } else if (strcmp(name, NNG_OPT_LOCADDR) == 0) { - return ( - nni_copyout_sockaddr(nni_pipe_self_addr(p), val, szp, t)); - } // Maybe the endpoint knows? The guarantees on pipes ensure that the // pipe will not outlive its creating endpoint. |
