[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31514 - gnunet/src/dv
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31514 - gnunet/src/dv |
Date: |
Wed, 18 Dec 2013 11:08:59 +0100 |
Author: grothoff
Date: 2013-12-18 11:08:58 +0100 (Wed, 18 Dec 2013)
New Revision: 31514
Modified:
gnunet/src/dv/plugin_transport_dv.c
Log:
-complete API implementation
Modified: gnunet/src/dv/plugin_transport_dv.c
===================================================================
--- gnunet/src/dv/plugin_transport_dv.c 2013-12-18 10:08:50 UTC (rev 31513)
+++ gnunet/src/dv/plugin_transport_dv.c 2013-12-18 10:08:58 UTC (rev 31514)
@@ -764,6 +764,21 @@
/**
+ * Function that is called to get the keepalive factor.
+ * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
+ * calculate the interval between keepalive packets.
+ *
+ * @param cls closure with the `struct Plugin`
+ * @return keepalive factor
+ */
+static unsigned int
+dv_plugin_query_keepalive_factor (void *cls)
+{
+ return 3;
+}
+
+
+/**
* Entry point for the plugin.
*
* @param cls closure with the plugin environment
@@ -803,6 +818,7 @@
api->check_address = &dv_plugin_check_address;
api->address_to_string = &dv_plugin_address_to_string;
api->string_to_address = &dv_plugin_string_to_address;
+ api->query_keepalive_factor = &dv_plugin_query_keepalive_factor;
api->get_session = &dv_get_session;
api->get_network = &dv_get_network;
return api;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31514 - gnunet/src/dv,
gnunet <=