aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_quota_compliance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-11 12:57:57 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-11 12:57:57 +0000
commitd984e2895f96f67fe2c44f27cdacfbb404485ada (patch)
treea9a355b13cc8d57096ff2de763d9cfd311a742b6 /src/core/test_core_quota_compliance.c
parent914ec7ef9e59b69868b92fced96d6693b2097e13 (diff)
downloadgnunet-d984e2895f96f67fe2c44f27cdacfbb404485ada.tar.gz
gnunet-d984e2895f96f67fe2c44f27cdacfbb404485ada.zip
implement cork option, fix testcases
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r--src/core/test_core_quota_compliance.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index 6a67b8606..d3b49d880 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -319,6 +319,7 @@ transmit_ready (void *cls, size_t size, void *buf)
319 (p1.connect_status == 1) ) 319 (p1.connect_status == 1) )
320 GNUNET_break (NULL != 320 GNUNET_break (NULL !=
321 GNUNET_CORE_notify_transmit_ready (p1.ch, 321 GNUNET_CORE_notify_transmit_ready (p1.ch,
322 GNUNET_NO,
322 0, 323 0,
323 FAST_TIMEOUT, 324 FAST_TIMEOUT,
324 &p2.id, 325 &p2.id,
@@ -395,11 +396,12 @@ connect_notify (void *cls,
395 measure_task = GNUNET_SCHEDULER_add_delayed(MEASUREMENT_LENGTH, &measurement_stop, NULL); 396 measure_task = GNUNET_SCHEDULER_add_delayed(MEASUREMENT_LENGTH, &measurement_stop, NULL);
396 397
397 GNUNET_break (NULL != GNUNET_CORE_notify_transmit_ready (p1.ch, 398 GNUNET_break (NULL != GNUNET_CORE_notify_transmit_ready (p1.ch,
398 0, 399 GNUNET_NO,
399 TIMEOUT, 400 0,
400 &p2.id, 401 TIMEOUT,
401 MESSAGESIZE, 402 &p2.id,
402 &transmit_ready, &p1)); 403 MESSAGESIZE,
404 &transmit_ready, &p1));
403 } 405 }
404} 406}
405 407
@@ -503,6 +505,7 @@ process_mtype (void *cls,
503 if (running == GNUNET_YES) 505 if (running == GNUNET_YES)
504 GNUNET_break (NULL != 506 GNUNET_break (NULL !=
505 GNUNET_CORE_notify_transmit_ready (p1.ch, 507 GNUNET_CORE_notify_transmit_ready (p1.ch,
508 GNUNET_NO,
506 0, 509 0,
507 FAST_TIMEOUT, 510 FAST_TIMEOUT,
508 &p2.id, 511 &p2.id,