aboutsummaryrefslogtreecommitdiff
path: root/src/core/sockimpl.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-08-15 09:43:27 +0500
committerGarrett D'Amore <garrett@damore.org>2018-08-15 09:43:27 +0500
commit56354bd08cd6549cbaf348cae62f9db01786afc4 (patch)
tree48cc5171615d2d1a2ca71084fb7e0d6ee65977f9 /src/core/sockimpl.h
parenta1f485bba51c56305537f3308a777035ea7c514d (diff)
downloadnng-56354bd08cd6549cbaf348cae62f9db01786afc4.tar.gz
nng-56354bd08cd6549cbaf348cae62f9db01786afc4.tar.bz2
nng-56354bd08cd6549cbaf348cae62f9db01786afc4.zip
fixes #654 use aio for synchronous connect
Diffstat (limited to 'src/core/sockimpl.h')
-rw-r--r--src/core/sockimpl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/sockimpl.h b/src/core/sockimpl.h
index 29e83f7a..be454d8a 100644
--- a/src/core/sockimpl.h
+++ b/src/core/sockimpl.h
@@ -25,14 +25,12 @@ struct nni_dialer {
nni_url * d_url;
nni_pipe * d_pipe; // active pipe (for redialer)
int d_refcnt;
- int d_lastrv; // last result from synchronous
- bool d_synch; // synchronous connect in progress?
bool d_closed; // full shutdown
bool d_closing;
nni_atomic_flag d_started;
nni_mtx d_mtx;
- nni_cv d_cv;
nni_list d_pipes;
+ nni_aio * d_user_aio;
nni_aio * d_con_aio;
nni_aio * d_tmo_aio; // backoff timer
nni_duration d_maxrtime; // maximum time for reconnect