aboutsummaryrefslogtreecommitdiff
path: root/src/stream/mesh-test.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-04-30 12:19:35 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-04-30 12:19:35 +0000
commitcc7582e76838292103a9e2d61e4cddcc8a30b6bb (patch)
treed52db77ceb256bbbd29d7f738af7aeaae6ced719 /src/stream/mesh-test.c
parent27b6c3cd3b39634ecb635c0faebc39a26141417e (diff)
downloadgnunet-cc7582e76838292103a9e2d61e4cddcc8a30b6bb.tar.gz
gnunet-cc7582e76838292103a9e2d61e4cddcc8a30b6bb.zip
- mesh test case to show it doesn't respond to shutdown
Diffstat (limited to 'src/stream/mesh-test.c')
-rw-r--r--src/stream/mesh-test.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/stream/mesh-test.c b/src/stream/mesh-test.c
new file mode 100644
index 000000000..eb9594a9f
--- /dev/null
+++ b/src/stream/mesh-test.c
@@ -0,0 +1,31 @@
1#include "platform.h"
2#include "gnunet_common.h"
3#include "gnunet_util_lib.h"
4#include "gnunet_mesh_service.h"
5
6static void
7run (void *cls, char *const *args,
8 const char *cfgfile,
9 const struct GNUNET_CONFIGURATION_Handle *cfg)
10{
11 struct GNUNET_MESH_Handle *m;
12
13 m = GNUNET_MESH_connect (cfg, /* the configuration handle */
14 socket, /* cls */
15 NULL, /* No inbound tunnel handler */
16 NULL, /* No in-tunnel cleaner */
17 NULL,
18 NULL); /* We don't get inbound tunnels */
19}
20
21int
22main (int argc, char **argv)
23{
24 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
25 GNUNET_GETOPT_OPTION_END
26 };
27 GNUNET_PROGRAM_run (argc, argv, "mesh-test",
28 "help",
29 options, &run, NULL);
30 return 0;
31}