summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing2.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-10-09 18:14:23 +0200
committert3sserakt <t3ss@posteo.de>2020-10-09 18:14:23 +0200
commit03199f7f246e1d636c9feb921d66be48c907130f (patch)
tree11c7eeb26ad4038bfa0aaa1b9e8caa4064312093 /src/transport/transport-testing2.c
parentc25c3fd24b691d35674b1e67cbcf1066c427c7d3 (diff)
- new udp backchannel logic. Two alternatives. Test not working.
Diffstat (limited to 'src/transport/transport-testing2.c')
-rw-r--r--src/transport/transport-testing2.c10
1 files changed, 7 insertions, 3 deletions
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;