From b92672e20420683e73bfc017956ac6ef2b6b793b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Dec 2016 01:05:43 -0800 Subject: Logic for socket shutdown, cleanup, and draining figured out. There's work to do still, but I've left clear indications of the design in comments. Some ugly mysteries are now solved. --- src/core/protocol.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/protocol.h') diff --git a/src/core/protocol.h b/src/core/protocol.h index 2b4625cb..b9760725 100644 --- a/src/core/protocol.h +++ b/src/core/protocol.h @@ -49,8 +49,10 @@ struct nni_protocol { * Shutdown the protocol instance, including giving time to * drain any outbound frames (linger). The protocol is not * required to honor the linger. + * XXX: This is probably redundant -- protocol should notice + * drain by getting NNG_ECLOSED on the upper write queue. */ - void (*proto_shutdown)(void *, uint64_t); + void (*proto_shutdown)(void *); /* * Add and remove pipes. These are called as connections are -- cgit v1.2.3-70-g09d2