aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-31 14:30:36 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-31 14:30:36 -0800
commit4e4203fb1cddcfb205d602dd76cd0a8338321ee6 (patch)
tree566907bf0c9b5e588f49db8fcb3fa3a681060fbd /src/core/endpt.h
parent8fe11dfb66acfe067b21b6eb47eb9e3928169950 (diff)
downloadnng-4e4203fb1cddcfb205d602dd76cd0a8338321ee6.tar.gz
nng-4e4203fb1cddcfb205d602dd76cd0a8338321ee6.tar.bz2
nng-4e4203fb1cddcfb205d602dd76cd0a8338321ee6.zip
Close & destroy endpoints in a single operation.
Diffstat (limited to 'src/core/endpt.h')
-rw-r--r--src/core/endpt.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h
index 36f55de2..73ed3243 100644
--- a/src/core/endpt.h
+++ b/src/core/endpt.h
@@ -23,17 +23,15 @@ struct nng_endpt {
char ep_addr[NNG_MAXADDRLEN];
nni_thread * ep_dialer;
nni_thread * ep_listener;
- int ep_stop; // thread exits before start
- int ep_start; // start thread running
- int ep_close; // full shutdown
- int ep_bound; // true if we bound locally
- nni_mutex ep_mx;
+ int ep_stop; // thread exits before start
+ int ep_start; // start thread running
+ int ep_close; // full shutdown
+ int ep_bound; // true if we bound locally
nni_cond ep_cv;
nni_pipe * ep_pipe; // Connected pipe (dialers only)
};
extern int nni_endpt_create(nni_endpt **, nni_socket *, const char *);
-extern void nni_endpt_destroy(nni_endpt *);
extern int nni_endpt_accept(nni_endpt *, nni_pipe **);
extern void nni_endpt_close(nni_endpt *);
extern int nni_endpt_dial(nni_endpt *, int);