gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15594 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r15594 - gnunet/src/vpn
Date: Wed, 15 Jun 2011 09:15:32 +0200

Author: toelke
Date: 2011-06-15 09:15:32 +0200 (Wed, 15 Jun 2011)
New Revision: 15594

Modified:
   gnunet/src/vpn/gnunet-daemon-exit.c
Log:
specify application-types

Modified: gnunet/src/vpn/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-exit.c 2011-06-15 07:15:32 UTC (rev 15593)
+++ gnunet/src/vpn/gnunet-daemon-exit.c 2011-06-15 07:15:32 UTC (rev 15594)
@@ -27,6 +27,7 @@
 #include <gnunet_common.h>
 #include <gnunet_program_lib.h>
 #include <gnunet_protocols.h>
+#include <gnunet_applications.h>
 #include <gnunet_mesh_service.h>
 #include <gnunet_constants.h>
 #include <string.h>
@@ -1177,8 +1178,16 @@
     {receive_tcp_remote,  GNUNET_MESSAGE_TYPE_REMOTE_TCP, 0},
     {NULL, 0, 0}
   };
-  mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, NULL);
 
+  const static GNUNET_MESH_ApplicationType apptypes[] =
+    {
+      GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY,
+      GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY,
+      GNUNET_APPLICATION_TYPE_END
+    };
+
+  mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, apptypes);
+
   cfg = cfg_;
   udp_connections = GNUNET_CONTAINER_multihashmap_create (65536);
   udp_connections_heap =




reply via email to

[Prev in Thread] Current Thread [Next in Thread]