diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-02-15 09:32:43 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-02-15 09:32:43 +0000 |
commit | e5291f9c14cc4720faf033dbea5e9549f5fb9f11 (patch) | |
tree | c9ab352cc9e97f9c0ac847a1820c0339a313231f /src/ats | |
parent | d32c8e2c5cb581adffa533d6d56c4a48e98f0ecc (diff) | |
download | gnunet-e5291f9c14cc4720faf033dbea5e9549f5fb9f11.tar.gz gnunet-e5291f9c14cc4720faf033dbea5e9549f5fb9f11.zip |
more docu
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 888637bc0..2bf9a8dd9 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -41,18 +41,35 @@ | |||
41 | * | 41 | * |
42 | * - General | 42 | * - General |
43 | * | 43 | * |
44 | * This component manages the addresses known to ATS service and suggests | 44 | * This ATS addresses ("addresses") component manages the addresses known to ATS |
45 | * addresses to transport service when it is interested in address suggestions | 45 | * service and suggests addresses to transport service when it is interested in |
46 | * for a peer. ATS addresses also instantiates the bandwidth assignment | 46 | * address suggestion for a peer. ATS addresses also instantiates the bandwidth assignment |
47 | * mechanism, notifies it about changes to addresses and forwards changes | 47 | * mechanism (solver), notifies it about changes to addresses and forwards changes |
48 | * to bandwidth assignments to transport, depending if transport is interested | 48 | * to bandwidth assignments to transport, depending if transport is interested |
49 | * in this change. | 49 | * in this change. |
50 | * | 50 | * |
51 | * - Initialization | 51 | * - Initialization |
52 | * FIXME | 52 | * During initialization a hashmap to store addresses is created. The most |
53 | * important step is to load the configured solver using configuration | ||
54 | * "[ats]:MODE". Current solvers are MODE_SIMPLISTIC, MODE_MLP. Interaction | ||
55 | * is done using a solver API | ||
53 | * | 56 | * |
54 | * - Solver API | 57 | * - Solver API |
55 | * FIXME | 58 | * |
59 | * Solver functions: | ||
60 | * s_init: init the solver with required information | ||
61 | * s_add: add a new address | ||
62 | * s_update: update an address | ||
63 | * s_get: get prefered address for a peer | ||
64 | * s_del: delete an address | ||
65 | * s_pref: change preference value for a peer | ||
66 | * s_done: shutdown solver | ||
67 | * Callbacks: | ||
68 | * addresses provides a bandwidth_changed_cb callback to the solver which is | ||
69 | * called when bandwidth assigned to peer has changed | ||
70 | * | ||
71 | * - Shutdown | ||
72 | * During shutdown all addresses are freed and the solver told to shutdown | ||
56 | * | 73 | * |
57 | * - Address management and suggestions: | 74 | * - Address management and suggestions: |
58 | * | 75 | * |