diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-10-31 18:47:07 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-10-31 23:10:12 -0700 |
| commit | 452ecf5ae83adc9ae77518746f4f81171c42248c (patch) | |
| tree | d81730eef3c19775abf0715831dc18e3f9885d21 /src/core/aio.c | |
| parent | 587bc765ee69acfabf3bc8b88a70806c07b61f87 (diff) | |
| download | nng-452ecf5ae83adc9ae77518746f4f81171c42248c.tar.gz nng-452ecf5ae83adc9ae77518746f4f81171c42248c.tar.bz2 nng-452ecf5ae83adc9ae77518746f4f81171c42248c.zip | |
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.
Diffstat (limited to 'src/core/aio.c')
| -rw-r--r-- | src/core/aio.c | 12 |
1 files changed, 0 insertions, 12 deletions
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 |
