diff options
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 936742e7b..a41aa7f65 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -1009,35 +1009,6 @@ neighbours_changed_notification (void *cls, | |||
1009 | GST_clients_broadcast_peer_notification (peer, address, state, state_timeout); | 1009 | GST_clients_broadcast_peer_notification (peer, address, state, state_timeout); |
1010 | } | 1010 | } |
1011 | 1011 | ||
1012 | /** | ||
1013 | * Function called to notify transport users that a neighbour peer changed its | ||
1014 | * active address. | ||
1015 | * | ||
1016 | * @param cls closure | ||
1017 | * @param peer peer this update is about (never NULL) | ||
1018 | * @param address address (never NULL) | ||
1019 | * @param last_validation point in time when last validation was performed | ||
1020 | * @param valid_until point in time how long address is valid | ||
1021 | * @param next_validation point in time when next validation will be performed | ||
1022 | * @param state state of validation notification | ||
1023 | */ | ||
1024 | static void | ||
1025 | validation_changed_notification (void *cls, | ||
1026 | const struct GNUNET_PeerIdentity *peer, | ||
1027 | const struct GNUNET_HELLO_Address *address, | ||
1028 | struct GNUNET_TIME_Absolute last_validation, | ||
1029 | struct GNUNET_TIME_Absolute valid_until, | ||
1030 | struct GNUNET_TIME_Absolute next_validation, | ||
1031 | enum GNUNET_TRANSPORT_ValidationState state) | ||
1032 | { | ||
1033 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | ||
1034 | "Notifying about change for for validation entry for peer `%s' with address `%s'\n", | ||
1035 | GNUNET_i2s (peer), | ||
1036 | (NULL != address) ? GST_plugins_a2s (address) : "<none>"); | ||
1037 | |||
1038 | GST_clients_broadcast_validation_notification (peer, address, | ||
1039 | last_validation, valid_until, next_validation, state); | ||
1040 | } | ||
1041 | 1012 | ||
1042 | /** | 1013 | /** |
1043 | * Function called when the service shuts down. Unloads our plugins | 1014 | * Function called when the service shuts down. Unloads our plugins |
@@ -1191,9 +1162,10 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1191 | &neighbours_changed_notification, | 1162 | &neighbours_changed_notification, |
1192 | (max_fd / 3) * 2); | 1163 | (max_fd / 3) * 2); |
1193 | GST_clients_start (GST_server); | 1164 | GST_clients_start (GST_server); |
1194 | GST_validation_start (&validation_changed_notification, NULL, (max_fd / 3)); | 1165 | GST_validation_start ((max_fd / 3)); |
1195 | } | 1166 | } |
1196 | 1167 | ||
1168 | |||
1197 | /** | 1169 | /** |
1198 | * The main function for the transport service. | 1170 | * The main function for the transport service. |
1199 | * | 1171 | * |