From 93bd3b50faed299a276365a9635e84002d89a5ae Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 26 Jan 2019 18:26:18 +0100 Subject: [PATCH] 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")); } -- 2.25.1