aboutsummaryrefslogtreecommitdiff
path: root/src/dv/plugin_transport_dv.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-04-01 15:51:38 +0000
committerNathan S. Evans <evans@in.tum.de>2010-04-01 15:51:38 +0000
commitd816ced9a78620f055abc3c556736ee2887f1603 (patch)
treea398d5764fb40495f4724cf13c30dcad530180a2 /src/dv/plugin_transport_dv.c
parent36bfd342bf5703f0f482e0ea0c6adf0682f3d014 (diff)
downloadgnunet-d816ced9a78620f055abc3c556736ee2887f1603.tar.gz
gnunet-d816ced9a78620f055abc3c556736ee2887f1603.zip
dv changes, closer to a working state
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r--src/dv/plugin_transport_dv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c
index fa35fa5a8..c29b17e8c 100644
--- a/src/dv/plugin_transport_dv.c
+++ b/src/dv/plugin_transport_dv.c
@@ -166,6 +166,9 @@ struct Plugin
166 166
167}; 167};
168 168
169/**
170 * Handler for messages received from the DV service.
171 */
169void handle_dv_message_received (void *cls, 172void handle_dv_message_received (void *cls,
170 struct GNUNET_PeerIdentity *sender, 173 struct GNUNET_PeerIdentity *sender,
171 char *msg, 174 char *msg,
@@ -176,7 +179,10 @@ void handle_dv_message_received (void *cls,
176{ 179{
177 struct Plugin *plugin = cls; 180 struct Plugin *plugin = cls;
178 181
179 /* TODO: Add in demultiplexing if we think we'll be receiving multiple messages at once */ 182 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
183 "plugin_transport_dv",
184 _("Received message from %s of type %d!\n"),
185 "DV SERVICE", ntohs(((struct GNUNET_MessageHeader *)msg)->type));
180 plugin->env->receive(plugin, 186 plugin->env->receive(plugin,
181 sender, 187 sender,
182 (struct GNUNET_MessageHeader *)msg, 188 (struct GNUNET_MessageHeader *)msg,