diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-24 11:03:11 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-24 11:03:11 +0000 |
commit | 76259023a5566d42229a4a284616fa8bac93b6a5 (patch) | |
tree | 1bfe89a5a7ed226ba05e41e7fcbb369b98eec2d9 /src/dv/plugin_transport_dv.c | |
parent | 551e4e177a8623ac35ece7125ec07de5f9b9d294 (diff) | |
download | gnunet-76259023a5566d42229a4a284616fa8bac93b6a5.tar.gz gnunet-76259023a5566d42229a4a284616fa8bac93b6a5.zip |
misc bugfixes, especially core dumps for dv test case
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r-- | src/dv/plugin_transport_dv.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c index f4811bbe9..30e5b6ac1 100644 --- a/src/dv/plugin_transport_dv.c +++ b/src/dv/plugin_transport_dv.c | |||
@@ -22,30 +22,10 @@ | |||
22 | * @file dv/plugin_transport_dv.c | 22 | * @file dv/plugin_transport_dv.c |
23 | * @brief DV transport service, takes incoming DV requests and deals with | 23 | * @brief DV transport service, takes incoming DV requests and deals with |
24 | * the DV service | 24 | * the DV service |
25 | * @author Nathan Evans | ||
25 | * @author Christian Grothoff | 26 | * @author Christian Grothoff |
26 | */ | 27 | */ |
27 | 28 | ||
28 | /** | ||
29 | * TODO: | ||
30 | * | ||
31 | * As a start, the dv plugin needs to listen for information from the dv | ||
32 | * service. The plugin (?) will be notified by core (?) when a tcp/udp/whatever | ||
33 | * message comes in that should be for dv. The plugin will then hand off the message | ||
34 | * to the dv service which will decrypt/validate the message (?) and then send the | ||
35 | * result back to us (the transport) which will then send the message to the transport | ||
36 | * service (yikes). | ||
37 | * | ||
38 | * Or, core will notify the dv service directly which will validate, | ||
39 | * etc. and then just send a message to us. | ||
40 | * | ||
41 | * For starters, this plugin needs to have a client which will listen for messages from | ||
42 | * the dv service that need to be sent up to the gnunet-transport-service. | ||
43 | * | ||
44 | * Messages sent from the dv transport get passed to the dv service which deals | ||
45 | * with the actual sending (how much state does this transport need? should it know | ||
46 | * which peers it is currently connected to and their distances, or just assume that | ||
47 | * anything should be passed along to the dv service?). | ||
48 | */ | ||
49 | #include "platform.h" | 29 | #include "platform.h" |
50 | #include "gnunet_protocols.h" | 30 | #include "gnunet_protocols.h" |
51 | #include "gnunet_connection_lib.h" | 31 | #include "gnunet_connection_lib.h" |
@@ -434,6 +414,9 @@ libgnunet_plugin_transport_dv_done (void *cls) | |||
434 | struct GNUNET_TRANSPORT_PluginFunctions *api = cls; | 414 | struct GNUNET_TRANSPORT_PluginFunctions *api = cls; |
435 | struct Plugin *plugin = api->cls; | 415 | struct Plugin *plugin = api->cls; |
436 | 416 | ||
417 | if (plugin->dv_handle != NULL) | ||
418 | GNUNET_DV_disconnect(plugin->dv_handle); | ||
419 | |||
437 | GNUNET_free (plugin); | 420 | GNUNET_free (plugin); |
438 | GNUNET_free (api); | 421 | GNUNET_free (api); |
439 | return NULL; | 422 | return NULL; |