diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-03 16:11:49 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-03 16:11:49 +0000 |
commit | 7a441138e549ac5bbc1974a23653bb77c51a8bb1 (patch) | |
tree | 04405168216df13a370a106fd7f92f554887dae9 /src/transport/test_transport_api.c | |
parent | 7b7f7a9152bec8f8bd6d85e88cc57ba231a22bd2 (diff) | |
download | gnunet-7a441138e549ac5bbc1974a23653bb77c51a8bb1.tar.gz gnunet-7a441138e549ac5bbc1974a23653bb77c51a8bb1.zip |
unix domain socket transport, associated test cases
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index 3b528d84d..60cb7866f 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -76,6 +76,8 @@ static int is_tcp_nat; | |||
76 | 76 | ||
77 | static int is_udp; | 77 | static int is_udp; |
78 | 78 | ||
79 | static int is_unix; | ||
80 | |||
79 | static int is_udp_nat; | 81 | static int is_udp_nat; |
80 | 82 | ||
81 | static int is_http; | 83 | static int is_http; |
@@ -369,6 +371,12 @@ run (void *cls, | |||
369 | setup_peer (&p1, "test_transport_api_udp_peer1.conf"); | 371 | setup_peer (&p1, "test_transport_api_udp_peer1.conf"); |
370 | setup_peer (&p2, "test_transport_api_udp_peer2.conf"); | 372 | setup_peer (&p2, "test_transport_api_udp_peer2.conf"); |
371 | } | 373 | } |
374 | if (is_unix) | ||
375 | { | ||
376 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Using unix domain socket transport\n"); | ||
377 | setup_peer (&p1, "test_transport_api_unix_peer1.conf"); | ||
378 | setup_peer (&p2, "test_transport_api_unix_peer2.conf"); | ||
379 | } | ||
372 | if (is_multi_protocol) | 380 | if (is_multi_protocol) |
373 | { | 381 | { |
374 | setup_peer (&p1, "test_transport_api_multi_peer1.conf"); | 382 | setup_peer (&p1, "test_transport_api_multi_peer1.conf"); |
@@ -634,6 +642,10 @@ main (int argc, char *argv[]) | |||
634 | { | 642 | { |
635 | is_udp = GNUNET_YES; | 643 | is_udp = GNUNET_YES; |
636 | } | 644 | } |
645 | else if (strstr(argv[0], "unix") != NULL) | ||
646 | { | ||
647 | is_unix = GNUNET_YES; | ||
648 | } | ||
637 | else if (strstr(argv[0], "https") != NULL) | 649 | else if (strstr(argv[0], "https") != NULL) |
638 | { | 650 | { |
639 | is_https = GNUNET_YES; | 651 | is_https = GNUNET_YES; |