summaryrefslogtreecommitdiff
path: root/src/session.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.hpp')
-rw-r--r--src/session.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/session.hpp b/src/session.hpp
index 195bdca..55aa8ea 100644
--- a/src/session.hpp
+++ b/src/session.hpp
@@ -35,7 +35,7 @@ namespace zmq
public:
session_t (object_t *parent_, socket_base_t *owner_, const char *name_,
- const options_t &options_);
+ const options_t &options_, bool reconnect_);
// i_inout interface implementation.
bool read (::zmq_msg_t *msg_);
@@ -77,6 +77,9 @@ namespace zmq
// Inherited socket options.
options_t options;
+ // If true, reconnection is required after connection breaks.
+ bool reconnect;
+
session_t (const session_t&);
void operator = (const session_t&);
};