diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 35f0223a2..6e4b92bc6 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -502,6 +502,35 @@ GAS_handle_request_address_list (void *cls, struct GNUNET_SERVER_Client *client, | |||
502 | } | 502 | } |
503 | 503 | ||
504 | 504 | ||
505 | void | ||
506 | GAS_handle_monitor (void *cls, | ||
507 | struct GNUNET_SERVER_Client *client, | ||
508 | const struct GNUNET_MessageHeader *message) | ||
509 | { | ||
510 | struct MonitorMessage *mm = (struct MonitorMessage *) message; | ||
511 | size_t msg_size; | ||
512 | uint32_t id; | ||
513 | |||
514 | msg_size = ntohs (message->size); | ||
515 | if (msg_size < sizeof (struct MonitorMessage)) | ||
516 | return; | ||
517 | |||
518 | id = ntohl (mm->id); | ||
519 | |||
520 | switch (ntohl (mm->op)) { | ||
521 | case GNUNET_YES: | ||
522 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received `START' message\n"); | ||
523 | break; | ||
524 | case GNUNET_NO: | ||
525 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received `STOP' message\n"); | ||
526 | break; | ||
527 | default: | ||
528 | break; | ||
529 | } | ||
530 | |||
531 | |||
532 | } | ||
533 | |||
505 | 534 | ||
506 | /** | 535 | /** |
507 | * Handle 'reservation request' messages from clients. | 536 | * Handle 'reservation request' messages from clients. |