.\" Title: ne_set_request_body_buffer .\" Author: .\" Generator: DocBook XSL Stylesheets v1.72.0 .\" Date: 14 July 2007 .\" Manual: neon API reference .\" Source: neon 0.26.4 .\" .TH "NE_SET_REQUEST_BODY_" "3" "14 July 2007" "neon 0.26.4" "neon API reference" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" ne_set_request_body_buffer, ne_set_request_body_fd, ne_set_request_body_fd64 \- include a message body with a request .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP 32 .BI "void ne_set_request_body_buffer(ne_request\ *" "req" ", const\ char\ *" "buf" ", size_t\ " "count" ");" .HP 27 .BI "int ne_set_request_body_fd(ne_request\ *" "req" ", int\ " "fd" ", off_t\ " "begin" ", off_t\ " "length" ");" .HP 29 .BI "int ne_set_request_body_fd64(ne_request\ *" "req" ", int\ " "fd" ", off64_t\ " "begin" ", off64_t\ " "length" ");" .SH "DESCRIPTION" .PP The \fBne_set_request_body_buffer\fR function specifies that a message body should be included with the body, which is stored in the \fIcount\fR bytes buffer \fIbuf\fR. .PP The \fBne_set_request_body_fd\fR function can be used to include a message body with a request which is read from a file descriptor. The body is read from the file descriptor \fIfd\fR, which must be a associated with a seekable file (not a pipe, socket, or FIFO). \fIcount\fR bytes are read, beginning at offset \fIbegin\fR (hence, passing \fIbegin\fR as zero means the body is read from the beginning of the file). .PP If the NE_LFS macro is defined, then the \fBne_set_request_body_fd64\fR function is also available, to provide large file support. This function can be used on 32\-bit platforms supporting the LFS standard; the \fIoffset\fR and \fIlength\fR parameters can then be passed as 64\-bit values. When using large files, \fIfd\fR must be opened using \fBopen64\fR or by passing the O_LARGEFILE flag to \fBopen\fR. .PP For all the above functions, the source of the request body must survive until the request has been dispatched; neither the memory buffer passed to \fBne_set_request_body_buffer\fR nor the file descriptor passed to \fBne_set_request_body_fd\fR or \fBne_set_request_body_fd64\fR are copied internally. .SH "SEE ALSO" .PP ne_request_create .SH "AUTHOR" .PP \fBJoe Orton\fR <\&neon@webdav.org\&> .sp -1n .IP "" 4 Author. .SH "COPYRIGHT"