diff options
author | Bart Polot <bart.polot+voyager@gmail.com> | 2017-01-31 05:06:36 +0100 |
---|---|---|
committer | Bart Polot <bart.polot+voyager@gmail.com> | 2017-01-31 05:08:53 +0100 |
commit | 0e73a014339a41d6385f7049dea33a0e47bbe66c (patch) | |
tree | 5de006f5b8cc0cfe73076a10914f461b27ab5bb2 /src/cadet/cadet_api.c | |
parent | 9112c6ee1b16a1aea0d7e3ed96ad8587ee64f86f (diff) | |
download | gnunet-0e73a014339a41d6385f7049dea33a0e47bbe66c.tar.gz gnunet-0e73a014339a41d6385f7049dea33a0e47bbe66c.zip |
Implement incoming traffic handling on MQ
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 8 |
1 files changed, 8 insertions, 0 deletions
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, | |||
975 | ntohl (message->ccn.channel_of_client), | 975 | ntohl (message->ccn.channel_of_client), |
976 | GC_m2s (type), | 976 | GC_m2s (type), |
977 | type); | 977 | type); |
978 | if (NULL != ch->mq) | ||
979 | { | ||
980 | GNUNET_MQ_inject_message (ch->mq, payload); | ||
981 | return; | ||
982 | } | ||
983 | /** @a deprecated */ | ||
978 | for (unsigned i=0;i<h->n_handlers;i++) | 984 | for (unsigned i=0;i<h->n_handlers;i++) |
979 | { | 985 | { |
980 | handler = &h->message_handlers[i]; | 986 | handler = &h->message_handlers[i]; |
@@ -1006,6 +1012,8 @@ handle_local_data (void *cls, | |||
1006 | * | 1012 | * |
1007 | * @param h Cadet handle. | 1013 | * @param h Cadet handle. |
1008 | * @param message Message itself. | 1014 | * @param message Message itself. |
1015 | * | ||
1016 | * FIXME either delete or port to MQ | ||
1009 | */ | 1017 | */ |
1010 | static void | 1018 | static void |
1011 | handle_local_ack (void *cls, | 1019 | handle_local_ack (void *cls, |