diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-26 18:26:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-26 18:26:18 +0100 |
commit | 93bd3b50faed299a276365a9635e84002d89a5ae (patch) | |
tree | b7a74d9c5178782ddbe3ba9ae3ef1080c6005090 /src/transport/transport_api2_communication.c | |
parent | 9830ef2bd3cdcdda93a51cdae56f19ee80f53fc8 (diff) | |
download | gnunet-93bd3b50faed299a276365a9635e84002d89a5ae.tar.gz gnunet-93bd3b50faed299a276365a9635e84002d89a5ae.zip |
forward backchannels to communicator
Diffstat (limited to 'src/transport/transport_api2_communication.c')
-rw-r--r-- | src/transport/transport_api2_communication.c | 10 |
1 files 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 @@ | |||
22 | * @file transport/transport_api2_communication.c | 22 | * @file transport/transport_api2_communication.c |
23 | * @brief implementation of the gnunet_transport_communication_service.h API | 23 | * @brief implementation of the gnunet_transport_communication_service.h API |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | ||
26 | * FIXME: handling of messages for "notify_cb" not implemented! | ||
27 | */ | 25 | */ |
28 | #include "platform.h" | 26 | #include "platform.h" |
29 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
@@ -757,7 +755,13 @@ handle_backchannel_incoming (void *cls, | |||
757 | { | 755 | { |
758 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch = cls; | 756 | struct GNUNET_TRANSPORT_CommunicatorHandle *ch = cls; |
759 | 757 | ||
760 | // FIXME: handle bi! | 758 | if (NULL != ch->notify_cb) |
759 | ch->notify_cb (ch->notify_cb_cls, | ||
760 | &bi->pid, | ||
761 | (const struct GNUNET_MessageHeader *) &bi[1]); | ||
762 | else | ||
763 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
764 | _("Dropped backchanel message: handler not provided by communicator\n")); | ||
761 | } | 765 | } |
762 | 766 | ||
763 | 767 | ||