summaryrefslogtreecommitdiff
path: root/src/zmq_connecter.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-21 14:29:22 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-21 14:29:22 +0200
commit6be4b0143793ab5ceebc5d9d6bbe5c2f1333a0d2 (patch)
treea785065e54317d1d360e2e4b3a4acf1d6e5669f1 /src/zmq_connecter.hpp
parenta801b6d8b37557ccfb53030dca22f89a3f99b59c (diff)
session management implemented
Diffstat (limited to 'src/zmq_connecter.hpp')
-rw-r--r--src/zmq_connecter.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/zmq_connecter.hpp b/src/zmq_connecter.hpp
index dcdec19..e308502 100644
--- a/src/zmq_connecter.hpp
+++ b/src/zmq_connecter.hpp
@@ -20,6 +20,8 @@
#ifndef __ZMQ_ZMQ_CONNECTER_HPP_INCLUDED__
#define __ZMQ_ZMQ_CONNECTER_HPP_INCLUDED__
+#include <string>
+
#include "owned.hpp"
#include "io_object.hpp"
#include "tcp_connecter.hpp"
@@ -34,15 +36,14 @@ namespace zmq
public:
zmq_connecter_t (class io_thread_t *parent_, socket_base_t *owner_,
- const options_t &options_);
+ const options_t &options_, const char *session_name_);
+ ~zmq_connecter_t ();
// Set IP address to connect to.
int set_address (const char *addr_);
private:
- ~zmq_connecter_t ();
-
// Handlers for incoming commands.
void process_plug ();
void process_unplug ();
@@ -68,6 +69,9 @@ namespace zmq
// Associated socket options.
options_t options;
+ // Name of the session associated with the connecter.
+ std::string session_name;
+
zmq_connecter_t (const zmq_connecter_t&);
void operator = (const zmq_connecter_t&);
};