[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: forward backchannels to com
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: forward backchannels to communicator |
Date: |
Sat, 26 Jan 2019 18:26:22 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 93bd3b50f forward backchannels to communicator
93bd3b50f is described below
commit 93bd3b50faed299a276365a9635e84002d89a5ae
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 26 18:26:18 2019 +0100
forward backchannels to communicator
---
src/transport/transport_api2_communication.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/transport/transport_api2_communication.c
b/src/transport/transport_api2_communication.c
index ee1c788e5..33092fb2a 100644
--- a/src/transport/transport_api2_communication.c
+++ b/src/transport/transport_api2_communication.c
@@ -22,8 +22,6 @@
* @file transport/transport_api2_communication.c
* @brief implementation of the gnunet_transport_communication_service.h API
* @author Christian Grothoff
- *
- * FIXME: handling of messages for "notify_cb" not implemented!
*/
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -757,7 +755,13 @@ handle_backchannel_incoming (void *cls,
{
struct GNUNET_TRANSPORT_CommunicatorHandle *ch = cls;
- // FIXME: handle bi!
+ if (NULL != ch->notify_cb)
+ ch->notify_cb (ch->notify_cb_cls,
+ &bi->pid,
+ (const struct GNUNET_MessageHeader *) &bi[1]);
+ else
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ _("Dropped backchanel message: handler not provided by
communicator\n"));
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: forward backchannels to communicator,
gnunet <=