From b03978816ac35a1123456c2d872d4330bfcc3ae1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 15 Feb 2020 12:55:24 +0100 Subject: proposed fix for excessive queueing (somehow does not quite work, not sure why) --- src/transport/transport-testing2.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/transport/transport-testing2.h') diff --git a/src/transport/transport-testing2.h b/src/transport/transport-testing2.h index e7602e3e2..96a08a193 100644 --- a/src/transport/transport-testing2.h +++ b/src/transport/transport-testing2.h @@ -181,6 +181,11 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_service_start ( void *cb_cls); +void +GNUNET_TRANSPORT_TESTING_transport_communicator_service_stop ( + struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h); + + /** * @brief Instruct communicator to open a queue * @@ -202,14 +207,17 @@ GNUNET_TRANSPORT_TESTING_transport_communicator_open_queue (struct * @brief Instruct communicator to send data * * @param tc_queue The queue to use for sending + * @param cont function to call when done sending + * @param cont_cls closure for @a cont * @param payload Data to send - * @param payload_size Size of the payload - * - * @return Handle to the transmission + * @param payload_size Size of the @a payload */ -struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorTransmission * +void GNUNET_TRANSPORT_TESTING_transport_communicator_send (struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue, + GNUNET_SCHEDULER_TaskCallback + cont, + void *cont_cls, const void *payload, size_t payload_size); -- cgit v1.2.3