summaryrefslogtreecommitdiff
path: root/src/i_inout.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-15 17:49:40 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-15 17:49:40 +0100
commit2cef05d86976784f4bc1083cb0fa548e267ac132 (patch)
tree3c829a1bbf9f31742fe09111f8e8f1e35ded017c /src/i_inout.hpp
parent14b112301e62af5115ab870d97ae448c2e3deddb (diff)
reconnection mechanism added to tcp transport
Diffstat (limited to 'src/i_inout.hpp')
-rw-r--r--src/i_inout.hpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/i_inout.hpp b/src/i_inout.hpp
index 6be6169..b82a476 100644
--- a/src/i_inout.hpp
+++ b/src/i_inout.hpp
@@ -36,8 +36,19 @@ namespace zmq
// Flush all the previously written messages downstream.
virtual void flush () = 0;
- // Drop all the references to the engine.
- virtual void detach () = 0;
+ // Drop all the references to the engine. The parameter is the object
+ // to use to reconnect. If reconnection is not required, the argument
+ // is set to NULL.
+ virtual void detach (class owned_t *reconnecter_) = 0;
+
+ // Returns least loaded I/O thread.
+ virtual class io_thread_t *get_io_thread () = 0;
+
+ // Return pointer to the owning socket.
+ virtual class socket_base_t *get_owner () = 0;
+
+ // Returns the name of associated session.
+ virtual const char *get_session_name () = 0;
};
}