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_tcp.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_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 992729911..f2db47922 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1420,6 +1420,14 @@ nat_connect_timeout (void *cls, | |||
1420 | session); | 1420 | session); |
1421 | } | 1421 | } |
1422 | 1422 | ||
1423 | static void | ||
1424 | tcp_plugin_update_session_timeout (void *cls, | ||
1425 | const struct GNUNET_PeerIdentity *peer, | ||
1426 | struct Session *session) | ||
1427 | { | ||
1428 | |||
1429 | } | ||
1430 | |||
1423 | 1431 | ||
1424 | /** | 1432 | /** |
1425 | * Create a new session to transmit data to the target | 1433 | * Create a new session to transmit data to the target |
@@ -2687,6 +2695,7 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2687 | api->address_to_string = &tcp_address_to_string; | 2695 | api->address_to_string = &tcp_address_to_string; |
2688 | api->string_to_address = &tcp_string_to_address; | 2696 | api->string_to_address = &tcp_string_to_address; |
2689 | api->get_network = &tcp_get_network; | 2697 | api->get_network = &tcp_get_network; |
2698 | api->update_session_timeout = &tcp_plugin_update_session_timeout; | ||
2690 | plugin->service = service; | 2699 | plugin->service = service; |
2691 | if (NULL != service) | 2700 | if (NULL != service) |
2692 | { | 2701 | { |