aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-20 10:45:27 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-21 07:18:31 -0700
commit75adda86be49e6839e50443f0bae5875d9910897 (patch)
treee29b8b449c863be01e5f02945940dc390b239462 /src/core/aio.h
parent6305e16ab64e42fd9791819d416a6e3534439b0b (diff)
downloadnng-75adda86be49e6839e50443f0bae5875d9910897.tar.gz
nng-75adda86be49e6839e50443f0bae5875d9910897.tar.bz2
nng-75adda86be49e6839e50443f0bae5875d9910897.zip
fixes #41 Move DNS out of tcp transport
This moves the DNS related functionality into common code, and also removes all the URL parsing stuff out of the platform specific code and into the transports. Now the transports just take sockaddr's on initialization. (We may want to move this until later.) We also add UDP resolution as another separate API.
Diffstat (limited to 'src/core/aio.h')
-rw-r--r--src/core/aio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/aio.h b/src/core/aio.h
index aabb3fa9..9114c9fe 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -50,8 +50,7 @@ struct nni_aio {
void *a_pipe; // opaque pipe handle
// Resolver operations.
- nni_sockaddr *a_addrs;
- int a_naddrs;
+ nni_sockaddr *a_addr;
// Provider-use fields.
nni_aio_cancelfn a_prov_cancel;