gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10929 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r10929 - gnunet/src/hostlist
Date: Fri, 16 Apr 2010 09:58:56 +0200

Author: wachs
Date: 2010-04-16 09:58:56 +0200 (Fri, 16 Apr 2010)
New Revision: 10929

Modified:
   gnunet/src/hostlist/hostlist-client.c
Log:
removed peer from hostlist structure

Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2010-04-16 07:34:22 UTC (rev 
10928)
+++ gnunet/src/hostlist/hostlist-client.c       2010-04-16 07:58:56 UTC (rev 
10929)
@@ -51,8 +51,14 @@
  */
 struct Hostlist
 {
+  /**
+   * previous entry, used to manage entries in a double linked list
+   */
   struct Hostlist * prev;
 
+  /**
+   * next entry, used to manage entries in a double linked list
+   */
   struct Hostlist * next;
 
   /**
@@ -61,11 +67,6 @@
   const char *hostlist_uri;
 
   /**
-   * Peer offering the hostlist.  TO BE REMOVED.
-   */
-  struct GNUNET_PeerIdentity peer;
-
-  /**
    * Value describing the quality of the hostlist, the bigger the better but 
(should) never < 0
    * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in 
data structure is reached
    * intial value = HOSTLIST_INITIAL
@@ -78,22 +79,22 @@
   /**
    * Time the hostlist advertisement was recieved and the entry was created
    */
-  struct GNUNET_TIME_Absolute   time_creation;
+  struct GNUNET_TIME_Absolute time_creation;
 
   /**
    * Last time the hostlist was obtained
    */
-  struct GNUNET_TIME_Absolute   time_last_usage;
+  struct GNUNET_TIME_Absolute time_last_usage;
 
   /**
    * Number of HELLO messages obtained during last download
    */
-  uint32_t                 hello_count;
+  uint32_t hello_count;
 
   /**
    * Number of times the hostlist was obtained
    */
-  uint32_t                 times_used;
+  uint32_t times_used;
 
 };
 
@@ -869,7 +870,6 @@
       return GNUNET_OK;
     }
   hostlist = GNUNET_malloc (sizeof (struct Hostlist) + uri_size);
-  hostlist->peer = *peer;
   hostlist->hostlist_uri = (const char*) &hostlist[1];
   memcpy (&hostlist[1], uri, uri_size);
   hostlist->time_creation = GNUNET_TIME_absolute_get();





reply via email to

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