From ae944a8de32c107eea9427104e153c25e4a681f1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 6 Aug 2018 19:01:12 +0300 Subject: Revert "fixes #599 nng_dial sync should not return until added to socket" This changeset needs work. We are seeing errors described by This reverts commit d7f7c896c0ede24249ef63b1e45b1878bf4bd473. --- src/core/pipe.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/pipe.h') diff --git a/src/core/pipe.h b/src/core/pipe.h index 1e2f2b5d..1d73ce51 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -59,6 +59,11 @@ extern uint32_t nni_pipe_listener_id(nni_pipe *); // nni_pipe_dialer_id returns the dialer id for the pipe (or 0 if none). extern uint32_t nni_pipe_dialer_id(nni_pipe *); +// nni_pipe_closed returns true if nni_pipe_close was called. +// (This is used by the socket to determine if user closed the pipe +// during callback.) +extern bool nni_pipe_closed(nni_pipe *); + // nni_pipe_rele releases the hold on the pipe placed by nni_pipe_find. extern void nni_pipe_rele(nni_pipe *); -- cgit v1.2.3-70-g09d2