aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/inproc/inproc.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-27 07:11:12 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-27 07:14:46 -0700
commit1d69c8f0393337d4f222cc1af1af813d77922c84 (patch)
treec34e9d40924ff288125e229904a6371edbebd5f7 /src/sp/transport/inproc/inproc.c
parentbe13c2e8845423cec17af429fc4e16a5d9749e47 (diff)
downloadnng-1d69c8f0393337d4f222cc1af1af813d77922c84.tar.gz
nng-1d69c8f0393337d4f222cc1af1af813d77922c84.tar.bz2
nng-1d69c8f0393337d4f222cc1af1af813d77922c84.zip
Remove the ability to get sockaddrs from endpoints.
There is no valid use for this, once we added the ability to query the bound port.
Diffstat (limited to 'src/sp/transport/inproc/inproc.c')
-rw-r--r--src/sp/transport/inproc/inproc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sp/transport/inproc/inproc.c b/src/sp/transport/inproc/inproc.c
index dc95e1e4..ff692681 100644
--- a/src/sp/transport/inproc/inproc.c
+++ b/src/sp/transport/inproc/inproc.c
@@ -547,17 +547,6 @@ inproc_ep_set_recvmaxsz(void *arg, const void *v, size_t sz, nni_opt_type t)
return (rv);
}
-static nng_err
-inproc_ep_get_addr(void *arg, void *v, size_t *szp, nni_opt_type t)
-{
- inproc_ep *ep = arg;
- nng_sockaddr sa;
- sa.s_inproc.sa_family = NNG_AF_INPROC;
- nni_strlcpy(
- sa.s_inproc.sa_name, ep->addr, sizeof(sa.s_inproc.sa_name));
- return (nni_copyout_sockaddr(&sa, v, szp, t));
-}
-
static const nni_option inproc_pipe_options[] = {
// terminate list
{
@@ -605,10 +594,6 @@ static const nni_option inproc_ep_options[] = {
.o_get = inproc_ep_get_recvmaxsz,
.o_set = inproc_ep_set_recvmaxsz,
},
- {
- .o_name = NNG_OPT_LOCADDR,
- .o_get = inproc_ep_get_addr,
- },
// terminate list
{
.o_name = NULL,