diff options
Diffstat (limited to 'src/i_inout.hpp')
-rw-r--r-- | src/i_inout.hpp | 8 |
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; }; } |