aboutsummaryrefslogtreecommitdiff
path: root/src/core/protocol.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-22 01:05:43 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-22 01:05:43 -0800
commitb92672e20420683e73bfc017956ac6ef2b6b793b (patch)
treefb110918430e41a3751ea63801f8acb7c21b7db9 /src/core/protocol.h
parent0283e8bbef80d42fda1cd9b21e4d14673c3641b8 (diff)
downloadnng-b92672e20420683e73bfc017956ac6ef2b6b793b.tar.gz
nng-b92672e20420683e73bfc017956ac6ef2b6b793b.tar.bz2
nng-b92672e20420683e73bfc017956ac6ef2b6b793b.zip
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.
Diffstat (limited to 'src/core/protocol.h')
-rw-r--r--src/core/protocol.h4
1 files changed, 3 insertions, 1 deletions
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