From 03199f7f246e1d636c9feb921d66be48c907130f Mon Sep 17 00:00:00 2001 From: t3sserakt Date: Fri, 9 Oct 2020 18:14:23 +0200 Subject: - new udp backchannel logic. Two alternatives. Test not working. --- src/transport/transport-testing2.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/transport/transport-testing2.c') diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c index 98cfd5e29..baafff249 100644 --- a/src/transport/transport-testing2.c +++ b/src/transport/transport-testing2.c @@ -553,7 +553,10 @@ handle_update_queue_message (void *cls, tc_queue->mtu = ntohl (msg->mtu); tc_queue->cs = msg->cs; tc_queue->priority = ntohl (msg->priority); - tc_queue->q_len += GNUNET_ntohll (msg->q_len); + // Uncomment this for alternativ 1 of backchannel functionality + // tc_queue->q_len += GNUNET_ntohll (msg->q_len); + // Uncomment this for alternativ 2 of backchannel functionality + tc_queue->q_len = GNUNET_ntohll (msg->q_len); GNUNET_SERVICE_client_continue (client->client); } @@ -1130,8 +1133,9 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_send } } GNUNET_assert (NULL != tc_queue); - if (tc_queue->q_len != GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED) - tc_queue->q_len--; + // Uncomment this for alternativ 1 of backchannel functionality + /*if (tc_queue->q_len != GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED) + tc_queue->q_len--;*/ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending message\n"); inbox_size = sizeof (struct GNUNET_MessageHeader) + payload_size; -- cgit v1.2.3