* Process a given reply that might match the given
* request.
*
- * @param cls the 'struct GNUNET_GNS_ClientResultMessage'
- * @param key query of the request
- * @param value the 'struct GNUNET_GNS_LookupHandle' of a request matching the same key
+ * @param qe a queue entry
+ * @param msg the shorten msg received
*/
static void
process_shorten_reply (struct GNUNET_GNS_QueueEntry *qe,
/**
* Process a given reply to the lookup request
*
- * @param cls the 'struct GNUNET_GNS_ClientResultMessage'
- * @param key query of the request
- * @param value the 'struct GNUNET_GNS_LookupHandle' of a request matching the same key
- * @return GNUNET_YES to continue to iterate over all results,
- * GNUNET_NO if the reply is malformed
+ * @param qe a queue entry
+ * @param msg the lookup message received
*/
static void
process_lookup_reply (struct GNUNET_GNS_QueueEntry *qe,
* Initialize the connection with the GNS service.
*
* @param cfg configuration to use
- * @param ht_len size of the internal hash table to use for parallel requests
* @return handle to the GNS service, or NULL on error
*/
struct GNUNET_GNS_Handle *
/**
* Shutdown connection with the GNS service.
*
- * @param handle handle of the GNS connection to stop
+ * @param h handle of the GNS connection to stop
*/
void
GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *h)
/**
* Send shorten response back to client
*
+ * @param cls the closure containing a client shorten handle
* @param name the shortened name result or NULL if cannot be shortened
- * @param csh the handle to the shorten request
*/
static void
send_shorten_response(void* cls, const char* name)
/**
* Send get authority response back to client
*
+ * @param cls the closure containing a client get auth handle
* @param name the shortened name result or NULL if cannot be shortened
- * @param cah the handle to the get authority request
*/
static void
send_get_auth_response(void *cls, const char* name)
* Reply to client with the result from our lookup.
*
* @param cls the closure (our client lookup handle)
- * @param rh the request handle of the lookup
* @param rd_count the number of records
* @param rd the record data
*/
/**
*
- * @file gns/gns_interceptor.c
+ * @file gns/gnunet-service-gns_interceptor.c
* @brief GNUnet GNS interceptor logic
* @author Martin Schanzenbach
*/
* Reply to dns request with the result from our lookup.
*
* @param cls the closure to the request (an InterceptLookupHandle)
- * @param rh the request handle of the lookup
* @param rd_count the number of records to return
* @param rd the record data
*/
* Initialize dns interceptor
*
* @param zone the zone
+ * @param key the private key of the local zone
* @param c the configuration
* @return GNUNET_YES on success GNUNET_SYSERR on error
*/
struct GNUNET_CRYPTO_RsaPrivateKey *key,
const struct GNUNET_CONFIGURATION_Handle *c);
+/**
+ * Stops the interceptor
+ */
void
gns_interceptor_stop(void){};
*
* @param name the name given by delegation
* @param zone the authority
+ * @param our_zone our local zone
* @param the private key of our authority
*/
static void process_discovered_authority(char* name,
*
* @param nh the namestore handle
* @param dh the dht handle
+ * @param lz the local zone's hash
* @return GNUNET_OK on success
*/
int
/**
* Cleanup background lookups
+ *
+ * @param cks closure to iterator
+ * @param node heap nodes
+ * @param element the resolver handle
+ * @param cost heap cost
+ * @return always GNUNET_YES
*/
static int
cleanup_pending_background_queries(void* cls,
/**
* Helper function to free resolver handle
*
- * @rh the handle to free
+ * @param rh the handle to free
*/
static void
free_resolver_handle(struct ResolverHandle* rh)
return;
}
- GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Found %d answer(s) to query!\n",
- rh->answered);
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
+ "Found %d answer(s) to query in %d records!\n",
+ rh->answered, rd_count);
rh->proc(rh->proc_cls, rh, rd_count, rd);
}
* Checks if name is in tld
*
* @param name the name to check
+ * @param tld the TLD to check for
* @return GNUNET_YES or GNUNET_NO
*/
int
* @param zone the root zone
* @param record_type the record type to look up
* @param name the name to look up
+ * @param key a private key for use with PSEU import (can be NULL)
+ * @param timeout timeout for resolution
* @param proc the processor to call on result
* @param cls the closure to pass to proc
*/
* processor for a resultion result
*
* @param cls the closure
- * @param rh the resolution handle
* @param rd_count number of results
* @pram rd resukt data
*/
* @param record_type the record type to look up
* @param name the name to look up
* @param key optional private key for authority caching
+ * @param timeout timeout for the resolution
* @param proc the processor to call
* @param cls the closure to pass to proc
*/