X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fgnunet-service-transport_validation.h;h=929e97a5ca2168b9590f166914c398d648d308d2;hb=a900b29ddaa9ea46c731b054b5e3ef3e725b95a8;hp=a3692e3cf596cafc1be66c409bae0fdd6ce69ef5;hpb=a983a0267109b1b6a8e16e476e2f2956a8771b94;p=oweals%2Fgnunet.git diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h index a3692e3cf..929e97a5c 100644 --- a/src/transport/gnunet-service-transport_validation.h +++ b/src/transport/gnunet-service-transport_validation.h @@ -34,9 +34,11 @@ /** * Start the validation subsystem. + * + * @param max_fds maximum number of fds to use */ void -GST_validation_start (void); +GST_validation_start (unsigned int max_fds); /** @@ -51,24 +53,24 @@ GST_validation_stop (void); * Based on this, the validation module will measure latency for the * address more or less often. * - * @param sender peer FIXME: redundant! * @param address the address - * @param session session + * @param session the session * @param in_use GNUNET_YES if we are now using the address for a connection, * GNUNET_NO if we are no longer using the address for a connection + * @param line line of caller just for DEBUGGING! */ void -GST_validation_set_address_use (const struct GNUNET_PeerIdentity *sender, - const struct GNUNET_HELLO_Address *address, - struct Session *session, - int in_use); +GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address, + struct Session *session, + int in_use, + int line); /** * Query validation about the latest observed latency on a given * address. * - * @param sender peer + * @param sender peer * @param address the address * @param session session * @return observed latency of the address, FOREVER if the address was @@ -76,8 +78,8 @@ GST_validation_set_address_use (const struct GNUNET_PeerIdentity *sender, */ struct GNUNET_TIME_Relative GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender, - const struct GNUNET_HELLO_Address *address, - struct Session *session); + const struct GNUNET_HELLO_Address *address, + struct Session *session); /** @@ -91,8 +93,8 @@ GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender, void GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, const struct GNUNET_MessageHeader *hdr, - const struct GNUNET_HELLO_Address *sender_address, - struct Session *session); + const struct GNUNET_HELLO_Address *sender_address, + struct Session *session); /** @@ -132,13 +134,14 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); */ typedef void (*GST_ValidationAddressCallback) (void *cls, const struct - GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded + GNUNET_CRYPTO_EccPublicKeyBinaryEncoded * public_key, struct GNUNET_TIME_Absolute valid_until, struct GNUNET_TIME_Absolute validation_block, - const struct GNUNET_HELLO_Address *address); + const struct GNUNET_HELLO_Address + * address); /**