aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-03 12:44:02 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-03 12:44:02 -0700
commitc1a92ee76a3e9e70ecae4646763bade0c16e4807 (patch)
treec6cca5b8ff6227e38e1dc9dabec24a4b1373d799 /src/core/transport.h
parent14c8396d6954622de9e07b010810ee49f0496b2a (diff)
downloadnng-c1a92ee76a3e9e70ecae4646763bade0c16e4807.tar.gz
nng-c1a92ee76a3e9e70ecae4646763bade0c16e4807.tar.bz2
nng-c1a92ee76a3e9e70ecae4646763bade0c16e4807.zip
inproc transport uses aio for connect/accept.
Diffstat (limited to 'src/core/transport.h')
-rw-r--r--src/core/transport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/transport.h b/src/core/transport.h
index 5a057c93..05f2e7f7 100644
--- a/src/core/transport.h
+++ b/src/core/transport.h
@@ -52,6 +52,7 @@ struct nni_tran_ep {
// transport specific endpoint, and the second is a pointer to
// receive a newly created transport-specific pipe structure.
int (*ep_connect_sync)(void *, void **);
+ void (*ep_connect)(void *, nni_aio *);
// ep_bind just does the bind() and listen() work,
// reserving the address but not creating any connections.
@@ -64,6 +65,7 @@ struct nni_tran_ep {
// is the transport-specific endpoint, and the second is a pointer to
// a transport-specific pipe, created by this function.
int (*ep_accept_sync)(void *, void **);
+ void (*ep_accept)(void *, nni_aio *);
// ep_close stops the endpoint from operating altogether. It does
// not affect pipes that have already been created.