Lines Matching refs:iov
14 struct const_iovec *iov;
276 struct const_iovec *iov;
284 iov = &rpay->iov[rpay->iov_idx];
287 if ((ret=o_stream_sendv(output, iov, iov_count)) < 0) {
294 block_len = iov[i].iov_len <= bytes_left ?
295 iov[i].iov_len : bytes_left;
300 i_assert(iov[i].iov_len > bytes_left);
301 iov[i].iov_base = PTR_OFFSET
302 (iov[i].iov_base, iov[i].iov_len - bytes_left);
303 iov[i].iov_len = bytes_left;
316 const struct const_iovec *iov, unsigned int iov_count)
342 if (iov == NULL) {
348 rpay.iov = i_new(struct const_iovec, iov_count);
349 memcpy(rpay.iov, iov, sizeof(*iov)*iov_count);
421 i_free(rpay.iov);
431 struct const_iovec iov;
440 i_zero(&iov);
441 iov.iov_base = data;
442 iov.iov_len = size;
443 ret = http_server_response_output_payload(&resp, &iov, 1);
564 struct const_iovec iov[3];
655 iov[0].iov_base = str_data(rtext);
656 iov[0].iov_len = str_len(rtext);
658 iov[1].iov_base = str_data(resp->headers);
659 iov[1].iov_len = str_len(resp->headers);
661 iov[2].iov_base = "\r\n";
662 iov[2].iov_len = 2;
666 if (o_stream_sendv(conn->conn.output, iov, N_ELEMENTS(iov)) < 0) {
718 const struct const_iovec *iov, unsigned int iov_count)
726 (&hsostream->resp, iov, iov_count) < 0) {
739 ret += iov[i].iov_len;