From 2cef05d86976784f4bc1083cb0fa548e267ac132 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 15 Dec 2009 17:49:40 +0100 Subject: reconnection mechanism added to tcp transport --- src/i_inout.hpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/i_inout.hpp') 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; }; } -- cgit v1.2.3