aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 78f973574..b2bb5d513 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -700,6 +700,21 @@ http_client_session_disconnect (void *cls,
700 700
701 701
702/** 702/**
703 * Function that is called to get the keepalive factor.
704 * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
705 * calculate the interval between keepalive packets.
706 *
707 * @param cls closure with the `struct Plugin`
708 * @return keepalive factor
709 */
710static unsigned int
711http_client_query_keepalive_factor (void *cls)
712{
713 return 3;
714}
715
716
717/**
703 * Function that can be used to force the plugin to disconnect 718 * Function that can be used to force the plugin to disconnect
704 * from the given peer and cancel all previous transmissions 719 * from the given peer and cancel all previous transmissions
705 * (and their continuationc). 720 * (and their continuationc).
@@ -1773,6 +1788,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
1773 api->cls = plugin; 1788 api->cls = plugin;
1774 api->send = &http_client_plugin_send; 1789 api->send = &http_client_plugin_send;
1775 api->disconnect_session = &http_client_session_disconnect; 1790 api->disconnect_session = &http_client_session_disconnect;
1791 api->query_keepalive_factor = &http_client_query_keepalive_factor;
1776 api->disconnect_peer = &http_client_peer_disconnect; 1792 api->disconnect_peer = &http_client_peer_disconnect;
1777 api->check_address = &http_client_plugin_address_suggested; 1793 api->check_address = &http_client_plugin_address_suggested;
1778 api->get_session = &http_client_plugin_get_session; 1794 api->get_session = &http_client_plugin_get_session;