Allow TCP addresses to be re-resolved whenever there is a reconnection attempt

This commit is contained in:
Mark Barbisan
2014-03-12 12:53:13 -04:00
parent 52db50f844
commit 350a1ac12b
8 changed files with 37 additions and 25 deletions

View File

@@ -41,7 +41,7 @@ namespace zmq
// then starts connection process.
tcp_connecter_t (zmq::io_thread_t *io_thread_,
zmq::session_base_t *session_, const options_t &options_,
const address_t *addr_, bool delayed_start_);
address_t *addr_, bool delayed_start_);
~tcp_connecter_t ();
private:
@@ -82,7 +82,7 @@ namespace zmq
fd_t connect ();
// Address to connect to. Owned by session_base_t.
const address_t *addr;
address_t *addr;
// Underlying socket.
fd_t s;