aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 6bf365243..f05048e96 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -390,6 +390,17 @@ typedef int
390(*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls, 390(*GNUNET_TRANSPORT_DisconnectSessionFunction) (void *cls,
391 struct Session *session); 391 struct Session *session);
392 392
393/**
394 * Function that is called to get the keepalive factor.
395 * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
396 * calculate the interval between keepalive packets.
397 *
398 * @param cls closure with the `struct Plugin`
399 * @return keepalive factor
400 */
401typedef unsigned int
402(*GNUNET_TRANSPORT_QueryKeepaliveFactorFunction) (void *cls);
403
393 404
394/** 405/**
395 * Function that can be called to force a disconnect from the 406 * Function that can be called to force a disconnect from the
@@ -565,6 +576,13 @@ struct GNUNET_TRANSPORT_PluginFunctions
565 GNUNET_TRANSPORT_DisconnectSessionFunction disconnect_session; 576 GNUNET_TRANSPORT_DisconnectSessionFunction disconnect_session;
566 577
567 /** 578 /**
579 * Function that is used to query keepalive factor.
580 * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
581 * calculate the interval between keepalive packets.
582 */
583 GNUNET_TRANSPORT_QueryKeepaliveFactorFunction query_keepalive_factor;
584
585 /**
568 * Function to pretty-print addresses. NOTE: this function is not 586 * Function to pretty-print addresses. NOTE: this function is not
569 * yet used by transport-service, but will be used in the future 587 * yet used by transport-service, but will be used in the future
570 * once the transport-API has been completed. 588 * once the transport-API has been completed.