Problem: socket_base_t::connect_routing_id is protected and only used in router_t and stream_t

Solution: add an intermediary base class routing_socket_base_t, move common functionality there and make connect_routing_id private
This commit is contained in:
Simon Giesecke
2018-05-29 11:32:33 +02:00
parent 25461a78dd
commit 728eddfcfd
6 changed files with 71 additions and 44 deletions

View File

@@ -45,7 +45,7 @@ class ctx_t;
class pipe_t;
// TODO: This class uses O(n) scheduling. Rewrite it to use O(1) algorithm.
class router_t : public socket_base_t
class router_t : public routing_socket_base_t
{
public:
router_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);