aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-13 22:00:19 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-13 22:01:38 -0700
commitd3de15eb854b88844071685f13cb70064d1fda49 (patch)
tree7270bc3bb6cf815c84adc25258608f90cdd6108c /src/core/pipe.h
parentbab7b4ac8f725115287e60784cfbc303a5222c66 (diff)
downloadnng-d3de15eb854b88844071685f13cb70064d1fda49.tar.gz
nng-d3de15eb854b88844071685f13cb70064d1fda49.tar.bz2
nng-d3de15eb854b88844071685f13cb70064d1fda49.zip
Use the same flow regardless of whether pipe start is used or not.
This means that pipe_start always succeeds, and we can guarantee that the pipe_start_cb is always executed, and in another context. This may help when we need to change the way that sockets and endpoints are associated.
Diffstat (limited to 'src/core/pipe.h')
-rw-r--r--src/core/pipe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h
index 3107ffb3..8fba2c52 100644
--- a/src/core/pipe.h
+++ b/src/core/pipe.h
@@ -1,5 +1,6 @@
//
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -62,7 +63,7 @@ extern int nni_pipe_create(nni_pipe **, nni_ep *, nni_sock *, nni_tran *);
extern uint16_t nni_pipe_proto(nni_pipe *);
extern uint16_t nni_pipe_peer(nni_pipe *);
-extern int nni_pipe_start(nni_pipe *);
+extern void nni_pipe_start(nni_pipe *);
extern int nni_pipe_getopt(nni_pipe *, int, void *, size_t *sizep);
// nni_pipe_get_proto_data gets the protocol private data set with the