From dfe245814ce868073f26b6ad5f05a24b9d99c7b4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Dec 2021 17:25:57 +0100 Subject: reduce lock contention in RSA secmod --- src/util/secmod_common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/util/secmod_common.h') diff --git a/src/util/secmod_common.h b/src/util/secmod_common.h index a212c9d49..b24e91cb2 100644 --- a/src/util/secmod_common.h +++ b/src/util/secmod_common.h @@ -51,6 +51,19 @@ TES_transmit (int sock, const struct GNUNET_MessageHeader *hdr); +/** + * Transmit @a end bytes from @a pos on @a sock. + * + * @param sock where to send the data + * @param end how many bytes to send + * @param pos first address with data + * @return #GNUNET_OK on success + */ +enum GNUNET_GenericReturnValue +TES_transmit_raw (int sock, + size_t end, + const void *pos); + /** * Information we keep for a client connected to us. */ -- cgit v1.2.3