diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-07-24 18:25:30 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-24 18:25:30 +0200 |
commit | 7c1dca546d9e49e7af372e4fff9e6a87058a7f12 (patch) | |
tree | f00c6760dcd14b944457928405e7e2eca23b1ff8 /src/i_engine.hpp | |
parent | f716b571baf59c1b622c7666bb8bf2905126a3d4 (diff) |
Session classes merged into a single class
Removal of ZMQ_IDENTITY resulted in various session classes doing
almost the same thing. This patch merges the classes into a single
class.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/i_engine.hpp')
-rw-r--r-- | src/i_engine.hpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/i_engine.hpp b/src/i_engine.hpp index 636985f..c49a107 100644 --- a/src/i_engine.hpp +++ b/src/i_engine.hpp @@ -32,7 +32,7 @@ namespace zmq // Plug the engine to the session. virtual void plug (class io_thread_t *io_thread_, - struct i_engine_sink *sink_) = 0; + class session_t *session_) = 0; // Unplug the engine from the session. virtual void unplug () = 0; @@ -50,25 +50,6 @@ namespace zmq virtual void activate_out () = 0; }; - // Abstract interface to be implemented by engine sinks such as sessions. - - struct i_engine_sink - { - virtual ~i_engine_sink () {} - - // Engine asks for a message to send to the network. - virtual bool read (class msg_t *msg_) = 0; - - // Engine received message from the network and sends it further on. - virtual bool write (class msg_t *msg_) = 0; - - // Flush all the previously written messages. - virtual void flush () = 0; - - // Engine is dead. Drop all the references to it. - virtual void detach () = 0; - }; - } #endif |