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/zmq_listener.cpp | |
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/zmq_listener.cpp')
-rw-r--r-- | src/zmq_listener.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zmq_listener.cpp b/src/zmq_listener.cpp index 2d5e7bb..cb73ad8 100644 --- a/src/zmq_listener.cpp +++ b/src/zmq_listener.cpp @@ -21,9 +21,9 @@ #include <new> #include "zmq_listener.hpp" -#include "transient_session.hpp" #include "zmq_engine.hpp" #include "io_thread.hpp" +#include "session.hpp" #include "err.hpp" zmq::zmq_listener_t::zmq_listener_t (io_thread_t *io_thread_, @@ -74,8 +74,8 @@ void zmq::zmq_listener_t::in_event () zmq_assert (io_thread); // Create and launch a session object. - transient_session_t *session = new (std::nothrow) - transient_session_t (io_thread, socket, options); + session_t *session = new (std::nothrow) + session_t (io_thread, false, socket, options, NULL, NULL); alloc_assert (session); session->inc_seqnum (); launch_child (session); |