[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13451 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13451 - gnunet/src/transport |
Date: |
Fri, 29 Oct 2010 10:56:09 +0200 |
Author: wachs
Date: 2010-10-29 10:56:09 +0200 (Fri, 29 Oct 2010)
New Revision: 13451
Modified:
gnunet/src/transport/test_quota_compliance.c
Log:
Adding support for other plugins
Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c 2010-10-29 07:47:59 UTC
(rev 13450)
+++ gnunet/src/transport/test_quota_compliance.c 2010-10-29 08:56:09 UTC
(rev 13451)
@@ -47,7 +47,7 @@
#define MEASUREMENT_MSG_SIZE_BIG 32768
#define MEASUREMENT_MAX_QUOTA 1024 * 1024 * 1024
#define MEASUREMENT_MIN_QUOTA 1024 * 10
-#define SEND_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
5)
+#define SEND_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
35)
/**
* Testcase timeout
*/
@@ -132,6 +132,12 @@
static unsigned long long current_quota_p1;
static unsigned long long current_quota_p2;
+static int is_tcp;
+static int is_tcp_nat;
+static int is_http;
+static int is_https;
+static int is_udp;
+
static struct GNUNET_TIME_Absolute start_time;
static GNUNET_SCHEDULER_TaskIdentifier die_task;
@@ -587,6 +593,26 @@
#ifdef MINGW
return GNUNET_SYSERR;
#endif
+ if (strstr(argv[0], "tcp_nat") != NULL)
+ {
+ is_tcp_nat = GNUNET_YES;
+ }
+ else if (strstr(argv[0], "tcp") != NULL)
+ {
+ is_tcp = GNUNET_YES;
+ }
+ else if (strstr(argv[0], "https") != NULL)
+ {
+ is_https = GNUNET_YES;
+ }
+ else if (strstr(argv[0], "http") != NULL)
+ {
+ is_http = GNUNET_YES;
+ }
+ else if (strstr(argv[0], "udp") != NULL)
+ {
+ is_udp = GNUNET_YES;
+ }
GNUNET_log_setup ("test-quota-compliance",
#if VERBOSE
"DEBUG",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13451 - gnunet/src/transport,
gnunet <=