diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-15 12:55:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-15 12:55:24 +0100 |
commit | b03978816ac35a1123456c2d872d4330bfcc3ae1 (patch) | |
tree | 9b9a382c6a485af91f88b1bccddcac342f186012 /src/transport/transport-testing2.h | |
parent | e57177325f2b3f4d66598ff501760da0030e7dd6 (diff) |
proposed fix for excessive queueing (somehow does not quite work, not sure why)
Diffstat (limited to 'src/transport/transport-testing2.h')
-rw-r--r-- | src/transport/transport-testing2.h | 16 |
1 files changed, 12 insertions, 4 deletions
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); |