gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r26139 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r26139 - gnunet/src/ats
Date: Fri, 15 Feb 2013 15:01:50 +0100

Author: wachs
Date: 2013-02-15 15:01:50 +0100 (Fri, 15 Feb 2013)
New Revision: 26139

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses.c
   gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
Log:
 more docu


Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2013-02-15 13:59:14 UTC 
(rev 26138)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2013-02-15 14:01:50 UTC 
(rev 26139)
@@ -48,12 +48,26 @@
  * to bandwidth assignments to transport, depending if transport is interested
  * in this change.
  *
+ * - Input data
+ *
+ * -- Addresses
+ *
+ * -- Quotas
+ *
+ * -- Preference values
+ *
+ *
  * - Initialization
  * During initialization a hashmap to store addresses is created. The most
  * important step is to load the configured solver using configuration
  * "[ats]:MODE". Current solvers are MODE_SIMPLISTIC, MODE_MLP. Interaction
  * is done using a solver API
  *
+ *
+ * - Loading quotas
+ * FIXME
+ *
+ *
  * - Solver API
  *
  * Solver functions:
@@ -140,27 +154,10 @@
  * - (updated address) || (address in use)
  * - (delete address)
  *
- * Adding addresses:
- *
- * - If you add a new address without a session, a new address with session 0
- *   will be added or an existing address with session 0 used
- * - If you add this address again now with a session a, the existing address
- *   will be updated with this session
- * - If you add this address again now with a session b, a new address object
- *   with this session will be added
-
- * Destroying addresses:
- *
- * - If you destroy an address without a session, the address itself and all
- *   address instances with an session will be removed
- * - If you destroy an address with a session, the session for this address
- *   will be removed
- *
- * Conclusion
- * Addresses without a session will be updated with a new session and if the
- * the session is destroyed the session is removed and address itself still
- * exists for suggestion
- *
+ * - Changing peer preferences
+ * The bandwidth assigned to a peer can be influenced by setting a preference
+ * for a peer. The prefernce will be given to to the solver with s_pref which
+ * has to take care of the preference value
  */
 
 

Modified: gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2013-02-15 
13:59:14 UTC (rev 26138)
+++ gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2013-02-15 
14:01:50 UTC (rev 26139)
@@ -32,12 +32,19 @@
 #define LOG(kind,...) GNUNET_log_from (kind, "ats-simplistic",__VA_ARGS__)
 
 /**
- * ATS simplistic solver
+ * ATS addresses : simplistic solver
  *
- * Assigns in and outbound bandwidth equally for all addresses in specific
- * network type (WAN, LAN) based on configured in and outbound quota for this
- * network.
+ * This solver ssigns in and outbound bandwidth equally for all addresses in
+ * specific network type (WAN, LAN) based on configured in and outbound quota
+ * for this network.
  *
+ * The solver is notified by addresses about changes to the addresses and
+ * recalculates the bandwith assigned if required. The solver notifies 
addresses
+ * by calling the GAS_bandwidth_changed_cb callback.
+ *
+ * - Initialization
+ *
+ *
  * For each peer only a single is selected and marked as "active" in the 
address
  * struct.
  *




reply via email to

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