aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-22 14:29:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-22 14:29:46 +0000
commit78c035a8492a5d57e0b16d6b784adbca2e817a96 (patch)
tree17806ec7857d9e0cd0f4db215e8db4c3a3d52d65 /src/transport/test_transport_api.c
parent7c1bbd6fd987b8ef8c0fbd5319279878430cf2c5 (diff)
downloadgnunet-78c035a8492a5d57e0b16d6b784adbca2e817a96.tar.gz
gnunet-78c035a8492a5d57e0b16d6b784adbca2e817a96.zip
wlan changes
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index c115d1e5d..2d0b42008 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -36,7 +36,7 @@
36#include "gnunet_transport_service.h" 36#include "gnunet_transport_service.h"
37#include "transport.h" 37#include "transport.h"
38 38
39#define VERBOSE GNUNET_NO 39#define VERBOSE GNUNET_YES
40 40
41#define VERBOSE_ARM GNUNET_NO 41#define VERBOSE_ARM GNUNET_NO
42 42
@@ -84,6 +84,8 @@ static int is_https;
84 84
85static int is_multi_protocol; 85static int is_multi_protocol;
86 86
87static int is_wlan;
88
87static GNUNET_SCHEDULER_TaskIdentifier die_task; 89static GNUNET_SCHEDULER_TaskIdentifier die_task;
88 90
89static char * key_file_p1; 91static char * key_file_p1;
@@ -397,6 +399,11 @@ run (void *cls,
397 setup_peer (&p1, "test_transport_api_https_peer1.conf"); 399 setup_peer (&p1, "test_transport_api_https_peer1.conf");
398 setup_peer (&p2, "test_transport_api_https_peer2.conf"); 400 setup_peer (&p2, "test_transport_api_https_peer2.conf");
399 } 401 }
402 else if (is_wlan)
403 {
404 setup_peer (&p1, "test_transport_api_wlan_peer1.conf");
405 setup_peer (&p2, "test_transport_api_wlan_peer2.conf");
406 }
400 GNUNET_assert(p1.th != NULL); 407 GNUNET_assert(p1.th != NULL);
401 GNUNET_assert(p2.th != NULL); 408 GNUNET_assert(p2.th != NULL);
402 409
@@ -635,12 +642,15 @@ main (int argc, char *argv[])
635 { 642 {
636 is_http = GNUNET_YES; 643 is_http = GNUNET_YES;
637 } 644 }
645 else if (strstr(argv[0], "wlan") != NULL)
646 {
647 is_wlan = GNUNET_YES;
648 }
638 else if (strstr(argv[0], "multi") != NULL) 649 else if (strstr(argv[0], "multi") != NULL)
639 { 650 {
640 is_multi_protocol = GNUNET_YES; 651 is_multi_protocol = GNUNET_YES;
641 } 652 }
642 653
643
644 ret = check (); 654 ret = check ();
645 if (is_multi_protocol) 655 if (is_multi_protocol)
646 { 656 {