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
1d9b76c8
Commit
1d9b76c8
authored
Jan 19, 2014
by
Tim M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for ZMQ_CONNECT_RID
parent
2f36f65f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CMakeLists.txt
CMakeLists.txt
+1
-0
router.cpp
src/router.cpp
+1
-3
No files found.
CMakeLists.txt
View file @
1d9b76c8
...
@@ -622,6 +622,7 @@ set(tests
...
@@ -622,6 +622,7 @@ set(tests
test_timeo
test_timeo
test_many_sockets
test_many_sockets
test_diffserv
test_diffserv
test_connect_rid
)
)
if
(
NOT WIN32
)
if
(
NOT WIN32
)
list
(
APPEND tests
list
(
APPEND tests
...
...
src/router.cpp
View file @
1d9b76c8
...
@@ -402,6 +402,7 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
...
@@ -402,6 +402,7 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
put_uint32
(
buf
+
1
,
next_rid
++
);
put_uint32
(
buf
+
1
,
next_rid
++
);
identity
=
blob_t
(
buf
,
sizeof
buf
);
identity
=
blob_t
(
buf
,
sizeof
buf
);
}
}
else
if
(
!
options
.
raw_sock
)
{
if
(
!
options
.
raw_sock
)
{
// Pick up handshake cases and also case where next identity is set
// Pick up handshake cases and also case where next identity is set
msg
.
init
();
msg
.
init
();
...
@@ -409,9 +410,6 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
...
@@ -409,9 +410,6 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
if
(
!
ok
)
if
(
!
ok
)
return
false
;
return
false
;
if
(
connect_rid_used
)
// we read but do not use identity from peer
msg
.
close
();
else
if
(
msg
.
size
()
==
0
)
{
if
(
msg
.
size
()
==
0
)
{
// Fall back on the auto-generation
// Fall back on the auto-generation
unsigned
char
buf
[
5
];
unsigned
char
buf
[
5
];
...
...
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