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>
This commit is contained in:
Martin Sustrik
2011-07-24 18:25:30 +02:00
parent f716b571ba
commit 7c1dca546d
20 changed files with 168 additions and 406 deletions

View File

@@ -37,7 +37,7 @@
#include "zmq_listener.hpp"
#include "zmq_connecter.hpp"
#include "io_thread.hpp"
#include "connect_session.hpp"
#include "session.hpp"
#include "config.hpp"
#include "clock.hpp"
#include "pipe.hpp"
@@ -441,8 +441,8 @@ int zmq::socket_base_t::connect (const char *addr_)
}
// Create session.
connect_session_t *session = new (std::nothrow) connect_session_t (
io_thread, this, options, protocol.c_str (), address.c_str ());
session_t *session = new (std::nothrow) session_t (
io_thread, true, this, options, protocol.c_str (), address.c_str ());
alloc_assert (session);
// Create a bi-directional pipe.