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/core/defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/defs.h') diff --git a/src/core/defs.h b/src/core/defs.h index 82d0dfaf..1c44e9af 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -49,6 +49,8 @@ typedef int nni_signal; // Wakeup channel. typedef uint64_t nni_time; // Abs. time (usec). typedef int64_t nni_duration; // Rel. time (usec). +typedef struct nni_aio nni_aio; + typedef void (*nni_cb)(void *); // Used by transports for scatter gather I/O. -- cgit v1.2.3-70-g09d2