aboutsummaryrefslogtreecommitdiff
path: root/src/core/protocol.h
diff options
context:
space:
mode:
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.