From fb6550a242bb1742ec62202a99d0604ee9069795 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 4 Mar 2017 02:46:40 -0800 Subject: Pipeline protocol now entirely callback driven. --- src/core/protocol.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/protocol.h') 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. -- cgit v1.2.3-70-g09d2