const struct GNUNET_SCHEDULER_TaskContext *tc)
{
static int strike_counter;
- static int failed_measurement_counter;
+ static int failed_measurement_counter = 1;
unsigned long long quota_allowed = 0;
int delta = 0;
GNUNET_assert (p->th != NULL);
}
+static size_t
+notify_ready_connect (void *cls, size_t size, void *buf)
+{
+ return 0;
+}
static void
exchange_hello_last (void *cls,
GNUNET_assert (GNUNET_OK ==
GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
message, &me->id));
+
+ GNUNET_assert(NULL != (transmit_handle = GNUNET_TRANSPORT_notify_transmit_ready (p2.th,
+ &p1.id,
+ sizeof (struct GNUNET_MessageHeader), 0,
+ TIMEOUT,
+ ¬ify_ready_connect,
+ NULL)));
+
/* both HELLOs exchanged, get ready to test transmission! */
}
else
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","tcp","symmetric");
}
- if (is_udp == GNUNET_YES)
+ else if (is_udp == GNUNET_YES)
{
if (is_asymmetric_recv_constant == GNUNET_YES)
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","asymmetric_recv_constant");
else
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric");
}
- if (is_http == GNUNET_YES)
+ else if (is_http == GNUNET_YES)
{
if (is_asymmetric_recv_constant == GNUNET_YES)
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","asymmetric_recv_constant");
else
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","symmetric");
}
- if (is_https == GNUNET_YES)
+ else if (is_https == GNUNET_YES)
{
if (is_asymmetric_recv_constant == GNUNET_YES)
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","asymmetric_recv_constant");
else
GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric");
}
+ else
+ {
+ GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","noplugin","none");
+ }
GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer1");
GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer2");