diff options
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 3e1a6396c..916998dcc 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -696,6 +696,21 @@ wlan_plugin_disconnect_session (void *cls, | |||
696 | 696 | ||
697 | 697 | ||
698 | /** | 698 | /** |
699 | * Function that is called to get the keepalive factor. | ||
700 | * GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to | ||
701 | * calculate the interval between keepalive packets. | ||
702 | * | ||
703 | * @param cls closure with the `struct Plugin` | ||
704 | * @return keepalive factor | ||
705 | */ | ||
706 | static unsigned int | ||
707 | wlan_plugin_query_keepalive_factor (void *cls) | ||
708 | { | ||
709 | return 3; | ||
710 | } | ||
711 | |||
712 | |||
713 | /** | ||
699 | * A session is timing out. Clean up. | 714 | * A session is timing out. Clean up. |
700 | * | 715 | * |
701 | * @param cls pointer to the Session | 716 | * @param cls pointer to the Session |
@@ -1968,6 +1983,7 @@ libgnunet_plugin_transport_wlan_init (void *cls) | |||
1968 | api->get_session = &wlan_plugin_get_session; | 1983 | api->get_session = &wlan_plugin_get_session; |
1969 | api->disconnect_peer = &wlan_plugin_disconnect_peer; | 1984 | api->disconnect_peer = &wlan_plugin_disconnect_peer; |
1970 | api->disconnect_session = &wlan_plugin_disconnect_session; | 1985 | api->disconnect_session = &wlan_plugin_disconnect_session; |
1986 | api->query_keepalive_factor = &wlan_plugin_query_keepalive_factor; | ||
1971 | api->address_pretty_printer = &wlan_plugin_address_pretty_printer; | 1987 | api->address_pretty_printer = &wlan_plugin_address_pretty_printer; |
1972 | api->check_address = &wlan_plugin_address_suggested; | 1988 | api->check_address = &wlan_plugin_address_suggested; |
1973 | api->address_to_string = &wlan_plugin_address_to_string; | 1989 | api->address_to_string = &wlan_plugin_address_to_string; |