From 97614393e450b6c6813021f0e733b864a6265872 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 1 Mar 2017 21:18:58 -0800 Subject: Start of msgq aio. --- src/core/pipe.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/pipe.c') 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. -- cgit v1.2.3-70-g09d2