projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9112c6e
)
Implement incoming traffic handling on MQ
author
Bart Polot
<bart.polot+voyager@gmail.com>
Tue, 31 Jan 2017 04:06:36 +0000
(
05:06
+0100)
committer
Bart Polot
<bart.polot+voyager@gmail.com>
Tue, 31 Jan 2017 04:08:53 +0000
(
05:08
+0100)
src/cadet/cadet_api.c
patch
|
blob
|
history
diff --git
a/src/cadet/cadet_api.c
b/src/cadet/cadet_api.c
index a1c7e8461cd2222da94fd12ccf613eee3708b07b..7640a924a1560204e22cfcaccfdfe15654cad5cd 100644
(file)
--- a/
src/cadet/cadet_api.c
+++ b/
src/cadet/cadet_api.c
@@
-975,6
+975,12
@@
handle_local_data (void *cls,
ntohl (message->ccn.channel_of_client),
GC_m2s (type),
type);
+ if (NULL != ch->mq)
+ {
+ GNUNET_MQ_inject_message (ch->mq, payload);
+ return;
+ }
+ /** @a deprecated */
for (unsigned i=0;i<h->n_handlers;i++)
{
handler = &h->message_handlers[i];
@@
-1006,6
+1012,8
@@
handle_local_data (void *cls,
*
* @param h Cadet handle.
* @param message Message itself.
+ *
+ * FIXME either delete or port to MQ
*/
static void
handle_local_ack (void *cls,