gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 09/09: Implement incoming traffic handling on MQ


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 09/09: Implement incoming traffic handling on MQ
Date: Tue, 31 Jan 2017 05:09:17 +0100

This is an automated email from the git hooks/post-receive script.

bart-polot pushed a commit to branch master
in repository gnunet.

commit 0e73a014339a41d6385f7049dea33a0e47bbe66c
Author: Bart Polot <address@hidden>
AuthorDate: Tue Jan 31 05:06:36 2017 +0100

    Implement incoming traffic handling on MQ
---
 src/cadet/cadet_api.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index a1c7e8461..7640a924a 100644
--- 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]