From 452ecf5ae83adc9ae77518746f4f81171c42248c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 31 Oct 2020 18:47:07 -0700 Subject: fixes #1311 reduce wasted use for nni_aio fixes #1317 IPv6 listener get port is incorrect fixes #1319 Want symbolic service names This is phase 1 of reducing the memory foot-print of aios, and also of pipes. This removes the largest consumer the socket address information, from the aio, which was only used by a few consumers. --- src/core/aio.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index 97bb9153..6a390677 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -699,15 +699,3 @@ nni_aio_sys_init(void) nni_thr_run(thr); return (0); } - -void -nni_aio_set_sockaddr(nni_aio *aio, const nng_sockaddr *sa) -{ - memcpy(&aio->a_sockaddr, sa, sizeof(*sa)); -} - -void -nni_aio_get_sockaddr(nni_aio *aio, nng_sockaddr *sa) -{ - memcpy(sa, &aio->a_sockaddr, sizeof(*sa)); -} \ No newline at end of file -- cgit v1.2.3-70-g09d2