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
ae2ea1a6
Commit
ae2ea1a6
authored
7 years ago
by
sigiesec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: Usage of "rid" in server_t
Solution: Replaced by "routing_id"
parent
e00131dd
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
server.cpp
src/server.cpp
+3
-3
server.hpp
src/server.hpp
+1
-1
No files found.
src/server.cpp
View file @
ae2ea1a6
...
...
@@ -38,7 +38,7 @@
zmq
::
server_t
::
server_t
(
class
ctx_t
*
parent_
,
uint32_t
tid_
,
int
sid_
)
:
socket_base_t
(
parent_
,
tid_
,
sid_
,
true
),
next_rid
(
generate_random
())
next_r
outing_
id
(
generate_random
())
{
options
.
type
=
ZMQ_SERVER
;
}
...
...
@@ -54,9 +54,9 @@ void zmq::server_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_)
zmq_assert
(
pipe_
);
uint32_t
routing_id
=
next_rid
++
;
uint32_t
routing_id
=
next_r
outing_
id
++
;
if
(
!
routing_id
)
routing_id
=
next_r
id
++
;
// Never use R
ID zero
routing_id
=
next_r
outing_id
++
;
// Never use Routing
ID zero
pipe_
->
set_server_socket_routing_id
(
routing_id
);
// Add the record into output pipes lookup table
...
...
This diff is collapsed.
Click to expand it.
src/server.hpp
View file @
ae2ea1a6
...
...
@@ -85,7 +85,7 @@ namespace zmq
// Routing IDs are generated. It's a simple increment and wrap-over
// algorithm. This value is the next ID to use (if not used already).
uint32_t
next_rid
;
uint32_t
next_r
outing_
id
;
server_t
(
const
server_t
&
);
const
server_t
&
operator
=
(
const
server_t
&
);
...
...
This diff is collapsed.
Click to expand it.
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