diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-16 13:25:58 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-16 13:25:58 -0700 |
| commit | 396d8a243df89680b850626193e0b23567b02585 (patch) | |
| tree | 9960dd986ce569031142a90dacc1c3986a3e3578 /src/core/endpt.h | |
| parent | fd037da0609df87b755e379eef93ed11ab14f55f (diff) | |
| download | nng-396d8a243df89680b850626193e0b23567b02585.tar.gz nng-396d8a243df89680b850626193e0b23567b02585.tar.bz2 nng-396d8a243df89680b850626193e0b23567b02585.zip | |
Bind the pipe to the ep properly, and wake any closers needed.
Diffstat (limited to 'src/core/endpt.h')
| -rw-r--r-- | src/core/endpt.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <garrett@damore.org> +// Copyright 2017 Capitar IT Group BV <info@capitar.com> // // 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 |
