Commit 97800118 authored by normano's avatar normano

Fixed zmq_socket_monitor example

parent 9bee21b3
...@@ -259,6 +259,8 @@ int main (void) ...@@ -259,6 +259,8 @@ int main (void)
event = get_monitor_event (client_mon, NULL, NULL); event = get_monitor_event (client_mon, NULL, NULL);
assert (event == ZMQ_EVENT_CONNECTED); assert (event == ZMQ_EVENT_CONNECTED);
event = get_monitor_event (client_mon, NULL, NULL); event = get_monitor_event (client_mon, NULL, NULL);
assert (event == ZMQ_EVENT_HANDSHAKE_SUCCEEDED);
event = get_monitor_event (client_mon, NULL, NULL);
assert (event == ZMQ_EVENT_MONITOR_STOPPED); assert (event == ZMQ_EVENT_MONITOR_STOPPED);
// This is the flow of server events // This is the flow of server events
...@@ -267,6 +269,8 @@ int main (void) ...@@ -267,6 +269,8 @@ int main (void)
event = get_monitor_event (server_mon, NULL, NULL); event = get_monitor_event (server_mon, NULL, NULL);
assert (event == ZMQ_EVENT_ACCEPTED); assert (event == ZMQ_EVENT_ACCEPTED);
event = get_monitor_event (server_mon, NULL, NULL); event = get_monitor_event (server_mon, NULL, NULL);
assert (event == ZMQ_EVENT_HANDSHAKE_SUCCEEDED);
event = get_monitor_event (server_mon, NULL, NULL);
assert (event == ZMQ_EVENT_CLOSED); assert (event == ZMQ_EVENT_CLOSED);
event = get_monitor_event (server_mon, NULL, NULL); event = get_monitor_event (server_mon, NULL, NULL);
assert (event == ZMQ_EVENT_MONITOR_STOPPED); assert (event == ZMQ_EVENT_MONITOR_STOPPED);
......
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