aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-01 21:18:58 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-01 21:18:58 -0800
commit97614393e450b6c6813021f0e733b864a6265872 (patch)
tree31c8d4d0b2206e944f797b291660d8cf52eebea0 /src/core/pipe.c
parent5436cc9e1619bf1dd80fabb568aac344ae65d406 (diff)
downloadnng-97614393e450b6c6813021f0e733b864a6265872.tar.gz
nng-97614393e450b6c6813021f0e733b864a6265872.tar.bz2
nng-97614393e450b6c6813021f0e733b864a6265872.zip
Start of msgq aio.
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 39b4d012..a401e4e3 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -36,6 +36,20 @@ nni_pipe_recv(nni_pipe *p, nng_msg **msgp)
}
+int
+nni_pipe_aio_recv(nni_pipe *p, nni_aio *aio)
+{
+ return (p->p_tran_ops.pipe_aio_recv(p->p_tran_data, aio));
+}
+
+
+int
+nni_pipe_aio_send(nni_pipe *p, nni_aio *aio)
+{
+ return (p->p_tran_ops.pipe_aio_send(p->p_tran_data, aio));
+}
+
+
// nni_pipe_close closes the underlying connection. It is expected that
// subsequent attempts receive or send (including any waiting receive) will
// simply return NNG_ECLOSED.