[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35101 - in gnunet/src: ats include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35101 - in gnunet/src: ats include |
Date: |
Thu, 5 Feb 2015 16:30:24 +0100 |
Author: grothoff
Date: 2015-02-05 16:30:24 +0100 (Thu, 05 Feb 2015)
New Revision: 35101
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.h
gnunet/src/include/gnunet_transport_plugin.h
Log:
-cleaning up gnunet-service-ats_addresses.h
Modified: gnunet/src/ats/gnunet-service-ats_addresses.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.h 2015-02-05 15:27:35 UTC
(rev 35100)
+++ gnunet/src/ats/gnunet-service-ats_addresses.h 2015-02-05 15:30:24 UTC
(rev 35101)
@@ -257,57 +257,57 @@
struct ATS_Address
{
/**
- * Next element in DLL
+ * Peer ID this address is for.
*/
- struct ATS_Address *next;
+ struct GNUNET_PeerIdentity peer;
/**
- * Previous element in DLL
+ * Address (in plugin-specific binary format).
*/
- struct ATS_Address *prev;
+ const void *addr;
/**
- * Peer ID
+ * Plugin name
*/
- struct GNUNET_PeerIdentity peer;
+ char *plugin;
/**
- * Address
+ * Solver specific information for this address
*/
- const void *addr;
+ void *solver_information;
/**
- * Address length
+ * ATS performance information for this address
*/
- size_t addr_len;
+ struct GNUNET_ATS_Information *atsi;
/**
- * Session ID, can never be 0.
+ * Time when address had last activity (update, in uses)
*/
- uint32_t session_id;
+ struct GNUNET_TIME_Absolute t_last_activity;
/**
- * Field to store local flags
+ * Time when address was added
*/
- uint32_t local_address_info;
+ struct GNUNET_TIME_Absolute t_added;
/**
- * Plugin name
+ * Address length, number of bytes in @e addr.
*/
- char *plugin;
+ size_t addr_len;
/**
- * Solver specific information for this address
+ * Session ID, can never be 0.
*/
- void *solver_information;
+ uint32_t session_id;
/**
- * ATS performance information for this address
+ * Field to store local flags
*/
- struct GNUNET_ATS_Information *atsi;
+ uint32_t local_address_info;
/**
- * ATS performance information for this address
+ * ATS performance information for this address, size of the @e atsi array.
*/
uint32_t atsi_count;
@@ -332,16 +332,6 @@
uint32_t last_notified_bw_out;
/**
- * Time when address had last activity (update, in uses)
- */
- struct GNUNET_TIME_Absolute t_last_activity;
-
- /**
- * Time when address was added
- */
- struct GNUNET_TIME_Absolute t_added;
-
- /**
* Is this the active address for this peer?
*/
int active;
@@ -360,7 +350,7 @@
/**
- * A multihashmap to store all addresses
+ * A multipeermap mapping peer identities to `struct ATS_Address`.
*/
extern struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses;
@@ -368,7 +358,7 @@
/**
* Initialize address subsystem. The addresses subsystem manages the addresses
- * known and current performance information.
+ * known and current performance information.
*/
void
GAS_addresses_init (void);
@@ -431,14 +421,12 @@
/**
- * Remove all addresses
+ * Remove all addresses.
*/
void
GAS_addresses_destroy_all (void);
-
-
/**
* Iterator for #GAS_addresses_get_peer_info()
*
Modified: gnunet/src/include/gnunet_transport_plugin.h
===================================================================
--- gnunet/src/include/gnunet_transport_plugin.h 2015-02-05 15:27:35 UTC
(rev 35100)
+++ gnunet/src/include/gnunet_transport_plugin.h 2015-02-05 15:30:24 UTC
(rev 35101)
@@ -491,7 +491,6 @@
struct Session *session);
-
/**
* Function that will be called whenever the transport service wants to
* notify the plugin that the inbound quota changed and that the plugin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35101 - in gnunet/src: ats include,
gnunet <=