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

@@ -47,7 +47,7 @@ namespace zmq
// Create a session of the particular type.
static session_base_t *create (zmq::io_thread_t *io_thread_,
bool active_, zmq::socket_base_t *socket_,
const options_t &options_, const address_t *addr_);
const options_t &options_, address_t *addr_);
// To be used once only, when creating the session.
void attach_pipe (zmq::pipe_t *pipe_);
@@ -90,7 +90,7 @@ namespace zmq
session_base_t (zmq::io_thread_t *io_thread_, bool active_,
zmq::socket_base_t *socket_, const options_t &options_,
const address_t *addr_);
address_t *addr_);
virtual ~session_base_t ();
private:
@@ -152,7 +152,7 @@ namespace zmq
bool has_linger_timer;
// Protocol and address to use when connecting.
const address_t *addr;
address_t *addr;
session_base_t (const session_base_t&);
const session_base_t &operator = (const session_base_t&);