ne_set_request_body_fd64 (3) - Linux Manuals
ne_set_request_body_fd64: include a message body with a request
NAME
ne_set_request_body_buffer, ne_set_request_body_fd, ne_set_request_body_fd64 - include a message body with a request
SYNOPSIS
#include <ne_request.h>
-
void ne_set_request_body_buffer(ne_request
* req, const char* buf, size_tcount); - int ne_set_request_body_fd(ne_request
* req, intfd, off_t begin, off_t length); - int ne_set_request_body_fd(ne_request
DESCRIPTION
The ne_set_request_body_fd 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 fd, which must be a associated with a seekable file (not a pipe, socket, or FIFO). count bytes are read, beginning at offset begin (hence, passing begin as zero means the body is read from the beginning of the file).
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 ne_set_request_body_buffer nor the file descriptor passed to ne_set_request_body_fd are copied internally.
AUTHOR
Joe Orton <neon [at] lists.manyfish.co.uk>
- Author.
COPYRIGHT