gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6443 - GNUnet/src/applications/hostlist


From: gnunet
Subject: [GNUnet-SVN] r6443 - GNUnet/src/applications/hostlist
Date: Sun, 24 Feb 2008 16:00:56 -0700 (MST)

Author: grothoff
Date: 2008-02-24 16:00:56 -0700 (Sun, 24 Feb 2008)
New Revision: 6443

Modified:
   GNUnet/src/applications/hostlist/hostlist.c
Log:
try all for self

Modified: GNUnet/src/applications/hostlist/hostlist.c
===================================================================
--- GNUnet/src/applications/hostlist/hostlist.c 2008-02-24 22:07:32 UTC (rev 
6442)
+++ GNUnet/src/applications/hostlist/hostlist.c 2008-02-24 23:00:56 UTC (rev 
6443)
@@ -122,8 +122,9 @@
                                         MHD_GET_ARGUMENT_KIND, "p");
   if ((protos == NULL) || (1 != sscanf (protos, "%llu", &results.protocols)))
     results.protocols = -1;
-  host_processor (coreAPI->myIdentity,
-                  GNUNET_TRANSPORT_PROTOCOL_NUMBER_ANY, GNUNET_YES, &results);
+  for 
(i=GNUNET_TRANSPORT_PROTOCOL_NUMBER_MAX;i>GNUNET_TRANSPORT_PROTOCOL_NUMBER_NAT;i--)
+    host_processor (coreAPI->myIdentity,
+                   i, GNUNET_YES, &results);
   identity->forEachHost (GNUNET_get_time (), &host_processor, &results);
   if (results.size == 0)
     return MHD_NO;              /* no known hosts!? */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]