diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-27 07:11:12 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-27 07:14:46 -0700 |
| commit | 1d69c8f0393337d4f222cc1af1af813d77922c84 (patch) | |
| tree | c34e9d40924ff288125e229904a6371edbebd5f7 /src/platform/windows/win_tcpdial.c | |
| parent | be13c2e8845423cec17af429fc4e16a5d9749e47 (diff) | |
| download | nng-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/platform/windows/win_tcpdial.c')
| -rw-r--r-- | src/platform/windows/win_tcpdial.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/platform/windows/win_tcpdial.c b/src/platform/windows/win_tcpdial.c index a3d64869..c03d564f 100644 --- a/src/platform/windows/win_tcpdial.c +++ b/src/platform/windows/win_tcpdial.c @@ -311,20 +311,6 @@ tcp_dialer_get_keepalive(void *arg, void *buf, size_t *szp, nni_type t) } static nng_err -tcp_dialer_get_locaddr(void *arg, void *buf, size_t *szp, nni_type t) -{ - nni_tcp_dialer *d = arg; - nng_sockaddr sa; - - nni_mtx_lock(&d->mtx); - if (nni_win_sockaddr2nn(&sa, &d->src, sizeof(d->src)) != 0) { - sa.s_family = NNG_AF_UNSPEC; - } - nni_mtx_unlock(&d->mtx); - return (nni_copyout_sockaddr(&sa, buf, szp, t)); -} - -static nng_err tcp_dialer_set_locaddr(void *arg, const void *buf, size_t sz, nni_type t) { nni_tcp_dialer *d = arg; @@ -380,7 +366,6 @@ tcp_dialer_set_locaddr(void *arg, const void *buf, size_t sz, nni_type t) static const nni_option tcp_dialer_options[] = { { .o_name = NNG_OPT_LOCADDR, - .o_get = tcp_dialer_get_locaddr, .o_set = tcp_dialer_set_locaddr, }, { |
