-doc, new config options
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Thu, 22 Mar 2012 11:22:37 +0000 (11:22 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Thu, 22 Mar 2012 11:22:37 +0000 (11:22 +0000)
src/gns/gns.conf.in
src/gns/gnunet-service-gns_resolver.h

index b625a14419c1427100c4945f8fc7ff0210294b8f..9d522b8fe66b0b373c3ced1efe2673487dc6f798 100644 (file)
@@ -8,6 +8,8 @@ UNIXPATH = /tmp/gnunet-service-gns.sock
 ZONEKEY = $SERVICEHOME/gns/zonekey.zkey
 HIJACK_DNS = NO
 AUTO_IMPORT_PKEY = YES
+MAX_PARALLEL_BACKGROUND_QUERIES = 25
+DEFAULT_LOOKUP_TIMEOUT = 10
 
 [fcfsd]
 HTTPPORT = 18080
index 18d32698a86248d76697c924839de83e6bb37abb..e973b0c52fb451c0be24e54707d6ab76f46a1d19 100644 (file)
@@ -144,9 +144,16 @@ struct ResolverHandle
   /* status of the resolution result */
   enum ResolutionStatus status;
 
+  /**
+   * private key of an/our authoritative zone
+   * can be NULL but automatical PKEY import will not work
+   */
   struct GNUNET_CRYPTO_RsaPrivateKey *priv_key;
 
-  /* the heap node associated with this lookup, null if timeout is set */
+  /**
+   * the heap node associated with this lookup, null if timeout is set
+   * used for DHT background lookups.
+   */
   struct GNUNET_CONTAINER_HeapNode *dht_heap_node;
 
 };
@@ -233,6 +240,7 @@ struct GetPseuAuthorityHandle
 
 /**
  * Initialize the resolver
+ * MUST be called before other gns_resolver_* methods
  *
  * @param nh handle to the namestore
  * @param dh handle to the dht
@@ -262,6 +270,18 @@ gns_resolver_lookup_record(struct GNUNET_CRYPTO_ShortHashCode zone,
                            RecordLookupProcessor proc,
                            void* cls);
 
+/**
+ * Shortens a name if possible. If the shortening fails
+ * name will be returned as shortened string. Else
+ * a shorter version of the name will be returned.
+ * There is no guarantee that the shortened name will
+ * actually be canonical/short etc.
+ *
+ * @param zone the zone to perform the operation in
+ * @param name name to shorten
+ * @param proc the processor to call on shorten result
+ * @param proc_cls teh closure to pass to proc
+ */
 void
 gns_resolver_shorten_name(struct GNUNET_CRYPTO_ShortHashCode zone,
                           const char* name,