Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
a766a4b6
Commit
a766a4b6
authored
Jan 31, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: reconnect_timer_id duplicated and essentially used only in base class
Solution: removed definitions and uses in subclasses
parent
bed3b0cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
19 deletions
+6
-19
ipc_connecter.hpp
src/ipc_connecter.hpp
+0
-6
stream_connecter_base.hpp
src/stream_connecter_base.hpp
+6
-6
tcp_connecter.cpp
src/tcp_connecter.cpp
+0
-1
tipc_connecter.hpp
src/tipc_connecter.hpp
+0
-6
No files found.
src/ipc_connecter.hpp
View file @
a766a4b6
...
...
@@ -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
();
...
...
src/stream_connecter_base.hpp
View file @
a766a4b6
...
...
@@ -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_
);
...
...
src/tcp_connecter.cpp
View file @
a766a4b6
...
...
@@ -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
();
...
...
src/tipc_connecter.hpp
View file @
a766a4b6
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment