gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36479 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r36479 - gnunet/src/transport
Date: Thu, 8 Oct 2015 13:28:27 +0200

Author: grothoff
Date: 2015-10-08 13:28:27 +0200 (Thu, 08 Oct 2015)
New Revision: 36479

Modified:
   gnunet/src/transport/plugin_transport_template.c
Log:
-fix template

Modified: gnunet/src/transport/plugin_transport_template.c
===================================================================
--- gnunet/src/transport/plugin_transport_template.c    2015-10-08 11:28:07 UTC 
(rev 36478)
+++ gnunet/src/transport/plugin_transport_template.c    2015-10-08 11:28:27 UTC 
(rev 36479)
@@ -296,6 +296,21 @@
 
 
 /**
+ * Function obtain the network type for an address.
+ *
+ * @param cls closure (`struct Plugin *`)
+ * @param address the address
+ * @return the network type
+ */
+static enum GNUNET_ATS_Network_Type
+template_plugin_get_network_for_address (void *cls,
+                                         const struct GNUNET_HELLO_Address 
*address)
+{
+  return GNUNET_ATS_NET_WAN; /* FOR NOW */
+}
+
+
+/**
  * Convert the transports address to a nice, human-readable
  * format.
  *
@@ -522,6 +537,7 @@
   api->string_to_address = &template_plugin_string_to_address;
   api->get_session = &template_plugin_get_session;
   api->get_network = &template_plugin_get_network;
+  api->get_network_for_address = &template_plugin_get_network_for_address;
   api->update_session_timeout = &template_plugin_update_session_timeout;
   api->setup_monitor = &template_plugin_setup_monitor;
   LOG (GNUNET_ERROR_TYPE_INFO, "Template plugin successfully loaded\n");




reply via email to

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