aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-04 02:46:40 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-04 02:46:40 -0800
commitfb6550a242bb1742ec62202a99d0604ee9069795 (patch)
treebd235a8ddf6766dc54c3e47b31dbc7a59802d5da /src/core/aio.h
parentc17a1dd3f5333da59355ecc3f8788a0396a8f72d (diff)
downloadnng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.gz
nng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.bz2
nng-fb6550a242bb1742ec62202a99d0604ee9069795.zip
Pipeline protocol now entirely callback driven.
Diffstat (limited to 'src/core/aio.h')
-rw-r--r--src/core/aio.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/aio.h b/src/core/aio.h
index f6096ca7..80a3ac02 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -37,12 +37,9 @@ struct nni_aio {
nni_iov a_iov[4];
int a_niov;
- // Sendmsg operation.
+ // Message operations.
nni_msg * a_msg;
- // Recvmsg operation.
- nni_msg ** a_msgp;
-
// TBD: Resolver operations.
// Provider-use fields.
@@ -54,7 +51,7 @@ struct nni_aio {
// the supplied argument when the operation is complete. If NULL is
// supplied for the callback, then nni_aio_wake is used in its place,
// and the aio is used for the argument.
-extern void nni_aio_init(nni_aio *, nni_cb, void *);
+extern int nni_aio_init(nni_aio *, nni_cb, void *);
// nni_aio_fini finalizes the aio, releasing resources (locks)
// associated with it. The caller is responsible for ensuring that any