summaryrefslogtreecommitdiff
path: root/src/i_inout.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-27 16:24:21 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-27 16:24:21 +0200
commit2dd501651592baa7f9e49f52e1321ae2b9b4e126 (patch)
treefe5d221061004894eb259304fcdbd4f8092de99d /src/i_inout.hpp
parent67194267f89d63391288600f127205a2b7a8a5ae (diff)
multiple bugs fixed
Diffstat (limited to 'src/i_inout.hpp')
-rw-r--r--src/i_inout.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i_inout.hpp b/src/i_inout.hpp
index 8901c04..89b9fbd 100644
--- a/src/i_inout.hpp
+++ b/src/i_inout.hpp
@@ -27,9 +27,17 @@ namespace zmq
struct i_inout
{
+ // Engine asks to get a message to send to the network.
virtual bool read (::zmq_msg_t *msg_) = 0;
+
+ // Engine sends the incoming message further on downstream.
virtual bool write (::zmq_msg_t *msg_) = 0;
+
+ // Flush all the previously written messages downstream.
virtual void flush () = 0;
+
+ // Drop all the references to the engine.
+ virtual void detach () = 0;
};
}