diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-18 11:31:56 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-18 11:31:56 +0000 |
commit | 7dd5cd13dd34be6a6ba90e586f599cfada951648 (patch) | |
tree | ad099f24b7521ba33ac8e27d0b8d44ddec509f67 /src/transport/plugin_transport_unix.c | |
parent | 0e5752c4c3a0a3a76c5d434be10fab4613835bda (diff) | |
download | gnunet-7dd5cd13dd34be6a6ba90e586f599cfada951648.tar.gz gnunet-7dd5cd13dd34be6a6ba90e586f599cfada951648.zip |
new timeout function and keep alives with nonces
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 906cf9997..67c176633 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -906,6 +906,13 @@ unix_plugin_get_session (void *cls, | |||
906 | return s; | 906 | return s; |
907 | } | 907 | } |
908 | 908 | ||
909 | static void | ||
910 | unix_plugin_update_session_timeout (void *cls, | ||
911 | const struct GNUNET_PeerIdentity *peer, | ||
912 | struct Session *session) | ||
913 | { | ||
914 | |||
915 | } | ||
909 | 916 | ||
910 | /** | 917 | /** |
911 | * Function that can be used by the transport service to transmit | 918 | * Function that can be used by the transport service to transmit |
@@ -1635,6 +1642,7 @@ libgnunet_plugin_transport_unix_init (void *cls) | |||
1635 | api->check_address = &unix_check_address; | 1642 | api->check_address = &unix_check_address; |
1636 | api->string_to_address = &unix_string_to_address; | 1643 | api->string_to_address = &unix_string_to_address; |
1637 | api->get_network = &unix_get_network; | 1644 | api->get_network = &unix_get_network; |
1645 | api->update_session_timeout = &unix_plugin_update_session_timeout; | ||
1638 | sockets_created = unix_transport_server_start (plugin); | 1646 | sockets_created = unix_transport_server_start (plugin); |
1639 | if (0 == sockets_created) | 1647 | if (0 == sockets_created) |
1640 | LOG (GNUNET_ERROR_TYPE_WARNING, | 1648 | LOG (GNUNET_ERROR_TYPE_WARNING, |