aboutsummaryrefslogtreecommitdiff
path: root/src/dv/plugin_transport_dv.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-04-30 14:50:06 +0000
committerNathan S. Evans <evans@in.tum.de>2010-04-30 14:50:06 +0000
commit5f9efe3ff20656b7900fc0b503f3e0cbe75eb20a (patch)
treea6f379dfd9dafc1db1fa95260ab7029f15a9b283 /src/dv/plugin_transport_dv.c
parente6b08db0728b172da76392967661c09e7bfdbb55 (diff)
downloadgnunet-5f9efe3ff20656b7900fc0b503f3e0cbe75eb20a.tar.gz
gnunet-5f9efe3ff20656b7900fc0b503f3e0cbe75eb20a.zip
dv changes. add propagation of disconnect messages, dv updates on peer direct connections. Result of those two changes should be a much better learned topology for all peers. This was periodic gossip is really only to stop timeouts from removing peers. Also changed dv_api to wait for message queuing by dv service before calling transport transmit continuation, so that addresses that are no longer available can be caught by transport service. Perhaps some other stuff I have forgotten about. Should be kinda sorta working, need to make better testcases and do more debugging as errors inevitably pop up
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r--src/dv/plugin_transport_dv.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index 4762c4c11..83a89abba 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -257,15 +257,10 @@ dv_plugin_send (void *cls,
257 priority, 257 priority,
258 timeout, 258 timeout,
259 addr, 259 addr,
260 addrlen); 260 addrlen,
261 261 cont,
262 if (cont != NULL) 262 cont_cls);
263 { 263
264 if (ret == 0)
265 cont(cont_cls, target, GNUNET_OK);
266 else
267 cont(cont_cls, target, GNUNET_SYSERR);
268 }
269 return ret; 264 return ret;
270} 265}
271 266