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
033e311d
Commit
033e311d
authored
Aug 23, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #411 from Quuxplusone/fix-test_monitor-bug
Fix a bug reported on the mailing list.
parents
12833804
f718d2be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test_monitor.cpp
tests/test_monitor.cpp
+7
-7
No files found.
tests/test_monitor.cpp
View file @
033e311d
...
...
@@ -36,39 +36,39 @@ void socket_monitor (void *s, int event_, zmq_event_data_t *data_)
// listener specific
case
ZMQ_EVENT_LISTENING
:
assert
(
data_
->
listening
.
fd
>
0
);
assert
(
memcmp
(
data_
->
listening
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
listening
.
addr
,
addr
));
events
|=
ZMQ_EVENT_LISTENING
;
break
;
case
ZMQ_EVENT_ACCEPTED
:
assert
(
data_
->
accepted
.
fd
>
0
);
assert
(
memcmp
(
data_
->
accepted
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
accepted
.
addr
,
addr
));
events
|=
ZMQ_EVENT_ACCEPTED
;
break
;
// connecter specific
case
ZMQ_EVENT_CONNECTED
:
assert
(
data_
->
connected
.
fd
>
0
);
assert
(
memcmp
(
data_
->
connected
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
connected
.
addr
,
addr
));
events
|=
ZMQ_EVENT_CONNECTED
;
break
;
case
ZMQ_EVENT_CONNECT_DELAYED
:
assert
(
data_
->
connect_delayed
.
err
!=
0
);
assert
(
memcmp
(
data_
->
connect_delayed
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
connect_delayed
.
addr
,
addr
));
events
|=
ZMQ_EVENT_CONNECT_DELAYED
;
break
;
// generic - either end of the socket
case
ZMQ_EVENT_CLOSE_FAILED
:
assert
(
data_
->
close_failed
.
err
!=
0
);
assert
(
memcmp
(
data_
->
close_failed
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
close_failed
.
addr
,
addr
));
events
|=
ZMQ_EVENT_CLOSE_FAILED
;
break
;
case
ZMQ_EVENT_CLOSED
:
assert
(
data_
->
closed
.
fd
!=
0
);
assert
(
memcmp
(
data_
->
closed
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
closed
.
addr
,
addr
));
events
|=
ZMQ_EVENT_CLOSED
;
break
;
case
ZMQ_EVENT_DISCONNECTED
:
assert
(
data_
->
disconnected
.
fd
!=
0
);
assert
(
memcmp
(
data_
->
disconnected
.
addr
,
addr
,
22
));
assert
(
!
strcmp
(
data_
->
disconnected
.
addr
,
addr
));
events
|=
ZMQ_EVENT_DISCONNECTED
;
break
;
default:
...
...
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