[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19116 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19116 - gnunet/src/ats |
Date: |
Fri, 13 Jan 2012 12:39:47 +0100 |
Author: wachs
Date: 2012-01-13 12:39:47 +0100 (Fri, 13 Jan 2012)
New Revision: 19116
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.h
gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
Log:
- more mlp
Modified: gnunet/src/ats/gnunet-service-ats_addresses.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.h 2012-01-13 10:37:55 UTC
(rev 19115)
+++ gnunet/src/ats/gnunet-service-ats_addresses.h 2012-01-13 11:39:47 UTC
(rev 19116)
@@ -46,6 +46,8 @@
char *plugin;
+ void *mlp_information;
+
struct GNUNET_ATS_Information *ats;
struct GNUNET_TIME_Relative atsp_latency;
@@ -73,6 +75,10 @@
*/
int active;
+ /**
+ * Is this the address for this peer in use?
+ */
+ int used;
};
/**
Modified: gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_mlp.h 2012-01-13 10:37:55 UTC
(rev 19115)
+++ gnunet/src/ats/gnunet-service-ats_addresses_mlp.h 2012-01-13 11:39:47 UTC
(rev 19116)
@@ -118,6 +118,15 @@
/**
+ * Address specific MLP information
+ */
+struct MLP_information
+{
+
+};
+
+
+/**
* Init the MLP problem solving component
*
* @param stats the GNUNET_STATISTICS handle
@@ -131,12 +140,35 @@
unsigned int max_iterations);
/**
- * Update address in the MLP problem
+ * Updates a single address in the MLP problem
+ *
+ * If the address did not exist before in the problem:
+ * The MLP problem has to be recreated and the problem has to be resolved
+ *
+ * Otherwise the addresses' values can be updated and the existing base can
+ * be reused
*/
void
-GAS_mlp_update (struct ATS_Address *address);
+GAS_mlp_address_update (struct GNUNET_CONTAINER_MultiHashMap * addresses,
struct ATS_Address *address);
+
/**
+ * Deletes a single address in the MLP problem
+ *
+ * The MLP problem has to be recreated and the problem has to be resolved
+ */
+void
+GAS_mlp_address_delete (struct GNUNET_CONTAINER_MultiHashMap * addresses,
struct ATS_Address *address);
+
+
+/**
+ * Deletes a single address in the MLP problem
+ */
+void
+GAS_mlp_address_change_preference (struct GNUNET_CONTAINER_MultiHashMap *
addresses, struct ATS_Address *address);
+
+
+/**
* Shutdown the MLP problem solving component
*/
void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19116 - gnunet/src/ats,
gnunet <=