From 396d8a243df89680b850626193e0b23567b02585 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 16 Jul 2017 13:25:58 -0700 Subject: Bind the pipe to the ep properly, and wake any closers needed. --- src/core/endpt.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/endpt.h') diff --git a/src/core/endpt.h b/src/core/endpt.h index 2c14605c..0d2a4570 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -1,5 +1,6 @@ // // Copyright 2016 Garrett D'Amore +// Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -34,7 +35,6 @@ struct nni_ep { int ep_refcnt; nni_mtx ep_mtx; nni_cv ep_cv; - nni_pipe * ep_pipe; // Connected pipe (dialers only) nni_list ep_pipes; nni_aio ep_acc_aio; nni_aio ep_con_aio; @@ -62,6 +62,7 @@ extern void nni_ep_close(nni_ep *); extern int nni_ep_dial(nni_ep *, int); extern int nni_ep_listen(nni_ep *, int); extern void nni_ep_list_init(nni_list *); -extern void nni_ep_pipe_remove(nni_ep *, nni_pipe *); +extern int nni_ep_pipe_add(nni_ep *ep, nni_pipe *); +extern void nni_ep_pipe_remove(nni_ep *, nni_pipe *); #endif // CORE_ENDPT_H -- cgit v1.2.3-70-g09d2