diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-03-01 02:32:54 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-03-01 02:32:54 +0000 |
commit | a7ff495aa46d0dee5aadd53401d0f00d3cc2177d (patch) | |
tree | 10f2e3904f1ab4e59bfc8abe63e1fc9d5a7073ca /src | |
parent | 51580550ab479d272beea3e67790e882182ffd01 (diff) | |
download | gnunet-a7ff495aa46d0dee5aadd53401d0f00d3cc2177d.tar.gz gnunet-a7ff495aa46d0dee5aadd53401d0f00d3cc2177d.zip |
- fix in monitoring, style
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 3fa5de71a..246495999 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1983,9 +1983,8 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1983 | if (NULL != GDS_transport_handle) | 1983 | if (NULL != GDS_transport_handle) |
1984 | { | 1984 | { |
1985 | GNUNET_TRANSPORT_offer_hello (GDS_transport_handle, h, NULL, NULL); | 1985 | GNUNET_TRANSPORT_offer_hello (GDS_transport_handle, h, NULL, NULL); |
1986 | if (GNUNET_YES != | 1986 | if (GNUNET_YES != disable_try_connect) |
1987 | disable_try_connect) | 1987 | GNUNET_TRANSPORT_try_connect (GDS_transport_handle, &pid, NULL, NULL); /*FIXME TRY_CONNECT change */ |
1988 | GNUNET_TRANSPORT_try_connect (GDS_transport_handle, &pid, NULL, NULL); /*FIXME TRY_CONNECT change */ | ||
1989 | } | 1988 | } |
1990 | } | 1989 | } |
1991 | } | 1990 | } |
@@ -2017,6 +2016,14 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2017 | GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (prm->expiration_time), | 2016 | GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (prm->expiration_time), |
2018 | &prm->key, get_path_length, xget_path, | 2017 | &prm->key, get_path_length, xget_path, |
2019 | put_path_length, put_path, type, data_size, data); | 2018 | put_path_length, put_path, type, data_size, data); |
2019 | GDS_CLIENTS_process_get_resp (type, | ||
2020 | xget_path, get_path_length, | ||
2021 | put_path, put_path_length, | ||
2022 | GNUNET_TIME_absolute_ntoh ( | ||
2023 | prm->expiration_time), | ||
2024 | &prm->key, | ||
2025 | data, | ||
2026 | data_size); | ||
2020 | 2027 | ||
2021 | /* forward to other peers */ | 2028 | /* forward to other peers */ |
2022 | GDS_ROUTING_process (type, GNUNET_TIME_absolute_ntoh (prm->expiration_time), | 2029 | GDS_ROUTING_process (type, GNUNET_TIME_absolute_ntoh (prm->expiration_time), |
@@ -2024,17 +2031,6 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2024 | xget_path, data, data_size); | 2031 | xget_path, data, data_size); |
2025 | } | 2032 | } |
2026 | 2033 | ||
2027 | GDS_CLIENTS_process_get_resp (type, | ||
2028 | get_path, | ||
2029 | get_path_length, | ||
2030 | put_path, | ||
2031 | put_path_length, | ||
2032 | GNUNET_TIME_absolute_ntoh ( | ||
2033 | prm->expiration_time), | ||
2034 | &prm->key, | ||
2035 | data, | ||
2036 | data_size); | ||
2037 | |||
2038 | return GNUNET_YES; | 2034 | return GNUNET_YES; |
2039 | } | 2035 | } |
2040 | 2036 | ||