gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 41/154: doxygen for send_


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 41/154: doxygen for send_
Date: Mon, 19 Aug 2019 10:15:53 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 4b924674f31d09c222087f8eae0a76882558bd06
Author: ng0 <address@hidden>
AuthorDate: Sun Jul 21 16:34:07 2019 +0000

    doxygen for send_
---
 src/microhttpd/mhd_send.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 705ca84c..7afaa69b 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -64,6 +64,25 @@
  * MHD_socket is defined in lib/mhd_sockets.h and the type
  * depends on the platform. However it is always a socket.
  */
+/**
+ * Send buffer on connection, and remember the current state of
+ * the socket options; only call setsockopt when absolutely
+ * necessary.
+ *
+ * @param connection the MHD_Connection structure
+ * @param buffer content of the buffer to send
+ * @param buffer_size the size of the buffer (in bytes)
+ * @param options the MHD_SendSocketOptions enum,
+          MHD_SSO_NO_CORK: definitely no corking (use NODELAY, or explicitly 
disable cork),
+          MHD_SSO_MAY_CORK: should enable corking (use MSG_MORE, or explicitly 
enable cork),
+          MHD_SSO_HDR_CORK: consider tcpi_snd_mss and consider not corking for 
the header
+          part if the size of the header is close to the MSS.
+          Only used if we are NOT doing 100 Continue and are still sending the
+          header (provided in full as the buffer to MHD_send_on_connection_ or 
as
+          the header to MHD_send_on_connection2_).
+ * @return sum of the number of bytes sent from both buffers or
+           -1 on error
+ */
 ssize_t
 MHD_send_on_connection_ (struct MHD_Connection *connection,
                          const char *buffer,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]