Commit a766a4b6 authored by Simon Giesecke's avatar Simon Giesecke

Problem: reconnect_timer_id duplicated and essentially used only in base class

Solution: removed definitions and uses in subclasses
parent bed3b0cf
......@@ -50,12 +50,6 @@ class ipc_connecter_t : public stream_connecter_base_t
bool delayed_start_);
private:
// ID of the timer used to delay the reconnection.
enum
{
reconnect_timer_id = 1
};
// Handlers for I/O events.
void out_event ();
......
......@@ -54,6 +54,12 @@ class stream_connecter_base_t : public own_t, public io_object_t
~stream_connecter_base_t ();
private:
// ID of the timer used to delay the reconnection.
enum
{
reconnect_timer_id = 1
};
// Internal function to return a reconnect backoff delay.
// Will modify the current_reconnect_ivl used for next call
// Returns the currently used interval
......@@ -63,12 +69,6 @@ class stream_connecter_base_t : public own_t, public io_object_t
// TODO check if some members can be made private
protected:
// ID of the timer used to delay the reconnection.
enum
{
reconnect_timer_id = 1
};
// Handlers for incoming commands.
void process_plug ();
void process_term (int linger_);
......
......@@ -116,7 +116,6 @@ void zmq::tcp_connecter_t::out_event ()
void zmq::tcp_connecter_t::timer_event (int id_)
{
zmq_assert (id_ == reconnect_timer_id || id_ == connect_timer_id);
if (id_ == connect_timer_id) {
_connect_timer_started = false;
rm_handle ();
......
......@@ -51,12 +51,6 @@ class tipc_connecter_t : public stream_connecter_base_t
bool delayed_start_);
private:
// ID of the timer used to delay the reconnection.
enum
{
reconnect_timer_id = 1
};
// Handlers for I/O events.
void out_event ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment