From 374f93a18edca2e0656c337a5b54927169ec31fa Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 29 Mar 2017 13:07:35 -0700 Subject: TCP (POSIX) async send/recv working. Other changes. Transport-level pipe initialization is now sepearate and explicit. The POSIX send/recv logic still uses threads under the hood, but makes use of the AIO framework for send/recv. This is a key stepping stone towards enabling poll() or similar async I/O approaches. --- src/platform/posix/posix_aio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/platform/posix/posix_aio.h') diff --git a/src/platform/posix/posix_aio.h b/src/platform/posix/posix_aio.h index 08c731bc..797f9e43 100644 --- a/src/platform/posix/posix_aio.h +++ b/src/platform/posix/posix_aio.h @@ -51,8 +51,8 @@ extern void nni_posix_aio_pipe_fini(nni_posix_aio_pipe *); // extern int nni_posix_aio_ep_init(nni_posix_aio_ep *, int); // extern void nni_posix_aio_ep_fini(nni_posix_aio_ep *); -extern int nni_posix_aio_read(nni_posix_aioq *, nni_aio *); -extern int nni_posix_aio_write(nni_posix_aioq *, nni_aio *); +extern int nni_posix_aio_read(nni_posix_aio_pipe *, nni_aio *); +extern int nni_posix_aio_write(nni_posix_aio_pipe *, nni_aio *); // extern int nni_posix_aio_connect(); // extern int nni_posix_aio_accept(); -- cgit v1.2.3-70-g09d2