aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps_api.c')
-rw-r--r--src/rps/rps_api.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 6e124644d..7d0674aff 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -344,6 +344,20 @@ GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle,
344} 344}
345 345
346 346
347void
348GNUNET_RPS_view_request_cancel (struct GNUNET_RPS_Handle *rps_handle)
349{
350 struct GNUNET_MQ_Envelope *ev;
351
352 GNUNET_assert (NULL != rps_handle->view_update_cb);
353
354 rps_handle->view_update_cb = NULL;
355
356 ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_CANCEL);
357 GNUNET_MQ_send (rps_handle->mq, ev);
358}
359
360
347/** 361/**
348 * Request biased stream of peers that are being put into the sampler 362 * Request biased stream of peers that are being put into the sampler
349 * 363 *
@@ -879,7 +893,12 @@ GNUNET_RPS_disconnect (struct GNUNET_RPS_Handle *h)
879 if (NULL != h->stream_requests_head) 893 if (NULL != h->stream_requests_head)
880 { 894 {
881 LOG (GNUNET_ERROR_TYPE_WARNING, 895 LOG (GNUNET_ERROR_TYPE_WARNING,
882 "Still waiting for requests\n"); 896 "Still waiting for replies\n");
897 }
898 if (NULL != h->view_update_cb)
899 {
900 LOG (GNUNET_ERROR_TYPE_WARNING,
901 "Still waiting for view updates\n");
883 } 902 }
884 GNUNET_free (h); 903 GNUNET_free (h);
885} 904}