mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Allow TCP addresses to be re-resolved whenever there is a reconnection attempt
This commit is contained in:
@@ -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&);
|
||||
|
||||
Reference in New Issue
Block a user