aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_send.h')
-rw-r--r--src/microhttpd/mhd_send.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h
index 54b5c1fe..d4ee8de7 100644
--- a/src/microhttpd/mhd_send.h
+++ b/src/microhttpd/mhd_send.h
@@ -41,6 +41,11 @@
41#include "connection_https.h" 41#include "connection_https.h"
42#endif 42#endif
43 43
44#if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) || \
45 defined(MHD_WINSOCK_SOCKETS)
46#define MHD_VECT_SEND 1
47#endif /* HAVE_SENDMSG || HAVE_WRITEV || MHD_WINSOCK_SOCKETS */
48
44#ifdef HAVE_FREEBSD_SENDFILE 49#ifdef HAVE_FREEBSD_SENDFILE
45/** 50/**
46 * Initialises static variables 51 * Initialises static variables
@@ -125,4 +130,21 @@ MHD_connection_set_nodelay_state_ (struct MHD_Connection *connection,
125 bool nodelay_state); 130 bool nodelay_state);
126 131
127 132
133/**
134 * Function for sending responses backed by a an array of memory buffers.
135 *
136 * @param connection the MHD connection structure
137 * @param r_iov the pointer to iov response structure with tracking
138 * @param push_data set to true to force push the data to the network from
139 * system buffers (usually set for the last piece of data),
140 * set to false to prefer holding incomplete network packets
141 * (more data will be send for the same reply).
142 * @return actual number of bytes sent
143 */
144ssize_t
145MHD_send_iovec_ (struct MHD_Connection *connection,
146 struct MHD_iovec_track_ *r_iov,
147 bool push_data);
148
149
128#endif /* MHD_SEND_H */ 150#endif /* MHD_SEND_H */