aboutsummaryrefslogtreecommitdiff
path: root/src/core/protocol.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-04 02:46:40 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-04 02:46:40 -0800
commitfb6550a242bb1742ec62202a99d0604ee9069795 (patch)
treebd235a8ddf6766dc54c3e47b31dbc7a59802d5da /src/core/protocol.h
parentc17a1dd3f5333da59355ecc3f8788a0396a8f72d (diff)
downloadnng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.gz
nng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.bz2
nng-fb6550a242bb1742ec62202a99d0604ee9069795.zip
Pipeline protocol now entirely callback driven.
Diffstat (limited to 'src/core/protocol.h')
-rw-r--r--src/core/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/protocol.h b/src/core/protocol.h
index 9869afc9..877eec31 100644
--- a/src/core/protocol.h
+++ b/src/core/protocol.h
@@ -62,6 +62,11 @@ struct nni_proto_sock_ops {
// block as needed.
void (*sock_fini)(void *);
+ // Open the protocol instance. This is run with the lock held,
+ // and intended to allow the protocol to start any asynchronous
+ // processing.
+ void (*sock_open)(void *);
+
// Close the protocol instance. This is run with the lock held,
// and intended to initiate closure of the socket. For example,
// it can signal the socket worker threads to exit.