aboutsummaryrefslogtreecommitdiff
path: root/src/dv/plugin_transport_dv.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-03-14 17:02:29 +0000
committerNathan S. Evans <evans@in.tum.de>2010-03-14 17:02:29 +0000
commit3e812a14846665f56f4d5e94a7285c02810581b0 (patch)
tree7ed1ca8eb7f2d1311261e5a33d67b6c22213b7ea /src/dv/plugin_transport_dv.c
parent5fabaa6b5f27ea2b8289f3a1b15cfce270d81368 (diff)
downloadgnunet-3e812a14846665f56f4d5e94a7285c02810581b0.tar.gz
gnunet-3e812a14846665f56f4d5e94a7285c02810581b0.zip
fondly remembering ciphertext_send... all the pieces are there, but still doesn't work. Needs debugging, as usual.
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r--src/dv/plugin_transport_dv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index 7d0b1521f..fa35fa5a8 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -166,19 +166,20 @@ struct Plugin
166 166
167}; 167};
168 168
169
170void handle_dv_message_received (void *cls, 169void handle_dv_message_received (void *cls,
171 struct GNUNET_PeerIdentity *sender, 170 struct GNUNET_PeerIdentity *sender,
172 struct GNUNET_MessageHeader *msg, 171 char *msg,
172 size_t msg_len,
173 unsigned int distance, 173 unsigned int distance,
174 char *sender_address, 174 char *sender_address,
175 size_t sender_address_len) 175 size_t sender_address_len)
176{ 176{
177 struct Plugin *plugin = cls; 177 struct Plugin *plugin = cls;
178 178
179 /* TODO: Add in demultiplexing if we think we'll be receiving multiple messages at once */
179 plugin->env->receive(plugin, 180 plugin->env->receive(plugin,
180 sender, 181 sender,
181 msg, 182 (struct GNUNET_MessageHeader *)msg,
182 distance, 183 distance,
183 sender_address, 184 sender_address,
184 sender_address_len); 185 sender_address_len);
@@ -336,7 +337,7 @@ libgnunet_plugin_transport_dv_init (void *cls)
336 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; 337 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls;
337 struct GNUNET_TRANSPORT_PluginFunctions *api; 338 struct GNUNET_TRANSPORT_PluginFunctions *api;
338 struct Plugin *plugin; 339 struct Plugin *plugin;
339 struct GNUNET_SERVICE_Context *service; 340 /*struct GNUNET_SERVICE_Context *service;*/
340 341
341 /** 342 /**
342 * Do we not even need a service for this thing? That's peculiar. 343 * Do we not even need a service for this thing? That's peculiar.