commit ef70fb51271773df97714f739fe7184d4d3a63b8 parent d594bbd28bc332595949950f371d0732a8ed02e2 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 18 Dec 2013 10:08:58 +0000 -complete API implementation Diffstat:
| M | src/dv/plugin_transport_dv.c | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c @@ -764,6 +764,21 @@ dv_get_network (void *cls, /** + * 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 @@ libgnunet_plugin_transport_dv_init (void *cls) 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;