@@ -107,6 +107,19 @@ void zmq::object_t::process_command (command_t &cmd_)
107
107
process_hiccup (cmd_.args .hiccup .pipe );
108
108
break ;
109
109
110
+ case command_t ::pipe_peer_stats:
111
+ process_pipe_peer_stats (cmd_.args .pipe_peer_stats .queue_count ,
112
+ cmd_.args .pipe_peer_stats .socket_base ,
113
+ cmd_.args .pipe_peer_stats .endpoint_pair );
114
+ break ;
115
+
116
+ case command_t ::pipe_stats_publish:
117
+ process_pipe_stats_publish (
118
+ cmd_.args .pipe_stats_publish .outbound_queue_count ,
119
+ cmd_.args .pipe_stats_publish .inbound_queue_count ,
120
+ cmd_.args .pipe_stats_publish .endpoint_pair );
121
+ break ;
122
+
110
123
case command_t ::pipe_term:
111
124
process_pipe_term ();
112
125
break ;
@@ -285,6 +298,34 @@ void zmq::object_t::send_hiccup (pipe_t *destination_, void *pipe_)
285
298
send_command (cmd);
286
299
}
287
300
301
+ void zmq::object_t::send_pipe_peer_stats (pipe_t *destination_,
302
+ uint64_t queue_count_,
303
+ own_t *socket_base_,
304
+ endpoint_uri_pair_t *endpoint_pair_)
305
+ {
306
+ command_t cmd;
307
+ cmd.destination = destination_;
308
+ cmd.type = command_t ::pipe_peer_stats;
309
+ cmd.args .pipe_peer_stats .queue_count = queue_count_;
310
+ cmd.args .pipe_peer_stats .socket_base = socket_base_;
311
+ cmd.args .pipe_peer_stats .endpoint_pair = endpoint_pair_;
312
+ send_command (cmd);
313
+ }
314
+
315
+ void zmq::object_t::send_pipe_stats_publish (own_t *destination_,
316
+ uint64_t outbound_queue_count_,
317
+ uint64_t inbound_queue_count_,
318
+ endpoint_uri_pair_t *endpoint_pair_)
319
+ {
320
+ command_t cmd;
321
+ cmd.destination = destination_;
322
+ cmd.type = command_t ::pipe_stats_publish;
323
+ cmd.args .pipe_stats_publish .outbound_queue_count = outbound_queue_count_;
324
+ cmd.args .pipe_stats_publish .inbound_queue_count = inbound_queue_count_;
325
+ cmd.args .pipe_stats_publish .endpoint_pair = endpoint_pair_;
326
+ send_command (cmd);
327
+ }
328
+
288
329
void zmq::object_t::send_pipe_term (pipe_t *destination_)
289
330
{
290
331
command_t cmd;
@@ -422,6 +463,18 @@ void zmq::object_t::process_hiccup (void *)
422
463
zmq_assert (false );
423
464
}
424
465
466
+ void zmq::object_t::process_pipe_peer_stats (uint64_t , own_t *, endpoint_uri_pair_t *)
467
+ {
468
+ zmq_assert (false );
469
+ }
470
+
471
+ void zmq::object_t::process_pipe_stats_publish (uint64_t ,
472
+ uint64_t ,
473
+ endpoint_uri_pair_t *)
474
+ {
475
+ zmq_assert (false );
476
+ }
477
+
425
478
void zmq::object_t::process_pipe_term ()
426
479
{
427
480
zmq_assert (false );
0 commit comments