aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index a5afc5fe4..817077f58 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -62,6 +62,10 @@ static struct GNUNET_SCHEDULER_Handle *sched;
62 62
63static int ok; 63static int ok;
64 64
65static int is_tcp;
66
67static int is_udp;
68
65#if VERBOSE 69#if VERBOSE
66#define OKPP do { ok++; fprintf (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) 70#define OKPP do { ok++; fprintf (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0)
67#else 71#else
@@ -283,6 +287,16 @@ main (int argc, char *argv[])
283{ 287{
284 int ret; 288 int ret;
285 289
290 if (strstr(argv[0], "test_transport_api_tcp") == 0)
291 {
292 is_tcp = GNUNET_YES;
293 }
294 else if (strstr(argv[0], "test_transport_api_udp") == 0)
295 {
296 is_udp = GNUNET_NO;
297 }
298
299
286 GNUNET_log_setup ("test-transport-api", 300 GNUNET_log_setup ("test-transport-api",
287#if VERBOSE 301#if VERBOSE
288 "DEBUG", 302 "DEBUG",