gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r26126 - gnunet/src/ats
Date: Fri, 15 Feb 2013 10:32:43 +0100

Author: wachs
Date: 2013-02-15 10:32:43 +0100 (Fri, 15 Feb 2013)
New Revision: 26126

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


Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2013-02-15 09:23:43 UTC 
(rev 26125)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2013-02-15 09:32:43 UTC 
(rev 26126)
@@ -41,19 +41,36 @@
  *
  * - General
  *
- * This component manages the addresses known to ATS service and suggests
- * addresses to transport service when it is interested in address suggestions
- * for a peer. ATS addresses also instantiates the bandwidth assignment
- * mechanism, notifies it about changes to addresses and forwards changes
+ * This ATS addresses ("addresses") component manages the addresses known to 
ATS
+ * service and suggests addresses to transport service when it is interested in
+ * address suggestion for a peer. ATS addresses also instantiates the 
bandwidth assignment
+ * mechanism (solver), notifies it about changes to addresses and forwards 
changes
  * to bandwidth assignments to transport, depending if transport is interested
  * in this change.
  *
  * - Initialization
- *  FIXME
+ * 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
  *
  * - Solver API
- *  FIXME
  *
+ * Solver functions:
+ * s_init: init the solver with required information
+ * s_add: add a new address
+ * s_update: update an address
+ * s_get: get prefered address for a peer
+ * s_del: delete an address
+ * s_pref: change preference value for a peer
+ * s_done: shutdown solver
+ * Callbacks:
+ * addresses provides a bandwidth_changed_cb callback to the solver which is
+ * called when bandwidth assigned to peer has changed
+ *
+ * - Shutdown
+ * During shutdown all addresses are freed and the solver told to shutdown
+ *
  * - Address management and suggestions:
  *
  * Transport service notifies ATS about changes to the addresses known to him.




reply via email to

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