aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-02-15 10:32:32 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-02-15 10:32:32 +0000
commit5129b1844b72310d697e363bef7aa3cc67de0489 (patch)
tree9d1af1529fabbf8be856430342f0ed8778786cfd /src/ats
parent8bf5eb5b252c3473892b279cfa7a544f1f1c833a (diff)
downloadgnunet-5129b1844b72310d697e363bef7aa3cc67de0489.tar.gz
gnunet-5129b1844b72310d697e363bef7aa3cc67de0489.zip
more docu
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/gnunet-service-ats_addresses.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c
index 41e9e841c..697198352 100644
--- a/src/ats/gnunet-service-ats_addresses.c
+++ b/src/ats/gnunet-service-ats_addresses.c
@@ -59,7 +59,7 @@
59 * Solver functions: 59 * Solver functions:
60 * s_init: init the solver with required information 60 * s_init: init the solver with required information
61 * s_add: add a new address 61 * s_add: add a new address
62 * s_update: update an address 62 * s_update: update ATS values or session for an address
63 * s_get: get prefered address for a peer 63 * s_get: get prefered address for a peer
64 * s_del: delete an address 64 * s_del: delete an address
65 * s_pref: change preference value for a peer 65 * s_pref: change preference value for a peer
@@ -74,15 +74,24 @@
74 * - Address management: 74 * - Address management:
75 * Transport service notifies ATS about changes to the addresses known to him. 75 * Transport service notifies ATS about changes to the addresses known to him.
76 * 76 *
77 * -- Addresses and sessions
78 * Addresses consist of the address itself and a numerical session.
79 * When a new addresswithout a session is added it has no session, so it gets
80 * session 0 assigned. When an address with a session is added and an address
81 * object with session 0 is found, this object is updated with the
82 * session otherwise a new address object with this session assigned is created.
83 *
77 * -- Adding an address: 84 * -- Adding an address:
78 85
79 * When transport learns a new address it tells ATS and ATS is telling addresses 86 * When transport learns a new address it tells ATS and ATS is telling addresses
80 * about it using GAS_address_add. If not known to addresses it creates a new 87 * about it using GAS_address_add. If not known to addresses it creates a new
81 * address object and calls solver's s_add. ATS information are deserialized 88 * address object and calls solver's s_add. ATS information are deserialized
82 * and solver is notified using s_update. 89 * and solver is notified about the session and ATS information using s_update.
83 * 90 *
84 * -- Updating an address 91 * -- Updating an address
85 * FIXME 92 * Addresses does an lookup up for the existing address, dissambles included
93 * ATS information and notifies the solver using s_update about the update.
94 *
86 * 95 *
87 * -- Deleting an address 96 * -- Deleting an address
88 * FIXME 97 * FIXME