From 0cd2fa7310f1fdf45443a8a9e3335658b1c3c64c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 25 Dec 2016 18:08:44 -0800 Subject: Substantial fixes for listen & dialers. At this point listening and dialing operations appear to function properly. As part of this I had to break the close logic up since otherwise we had a loop trying to reap a thread from itself. So there is now a separate reaper thread for pipes per-socket. I also changed lists to be a bit more rigid, and allocations now zero memory initially. (We had bugs due to uninitialized memory, and rather than hunt them all down, lets just init them to sane zero values.) --- src/core/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/protocol.h') diff --git a/src/core/protocol.h b/src/core/protocol.h index f73825d7..63683a6b 100644 --- a/src/core/protocol.h +++ b/src/core/protocol.h @@ -32,8 +32,8 @@ struct nni_protocol { // Add and remove pipes. These are called as connections are // created or destroyed. - int (*proto_add_pipe)(void *, nni_pipe *); - int (*proto_rem_pipe)(void *, nni_pipe *); + int (*proto_add_pipe)(void *, nni_pipe *, void **); + void (*proto_rem_pipe)(void *, void *); // Option manipulation. These may be NULL. int (*proto_setopt)(void *, int, const void *, size_t); -- cgit v1.2.3-70-g09d2