SM0 She11
Path:
/
/
usr
/
share
/
doc
/
neon-0.30.0
/
html
Full Path (server): /usr/share/doc/neon-0.30.0/html
Create Fil3
Upl04d Fil3
π api.html
[E]
[D]
[R]
π biblio.html
[E]
[D]
[R]
π compliance.html
[E]
[D]
[R]
π features.html
[E]
[D]
[R]
π index.html
[E]
[D]
[R]
π intro.html
[E]
[D]
[R]
π ref.html
[E]
[D]
[R]
π refalloc.html
[E]
[D]
[R]
π refauth.html
[E]
[D]
[R]
π refbuf.html
[E]
[D]
[R]
π refbufapp.html
[E]
[D]
[R]
π refbufcr.html
[E]
[D]
[R]
π refbufdest.html
[E]
[D]
[R]
π refbufutil.html
[E]
[D]
[R]
π refcert.html
[E]
[D]
[R]
π refclicert.html
[E]
[D]
[R]
π refconfig.html
[E]
[D]
[R]
π referr.html
[E]
[D]
[R]
π reffeat.html
[E]
[D]
[R]
π refgetst.html
[E]
[D]
[R]
π refi18n.html
[E]
[D]
[R]
π refiaddr.html
[E]
[D]
[R]
π refneon.html
[E]
[D]
[R]
π refopts.html
[E]
[D]
[R]
π refproxy.html
[E]
[D]
[R]
π refreq.html
[E]
[D]
[R]
π refreqbody.html
[E]
[D]
[R]
π refreqflags.html
[E]
[D]
[R]
π refreqhdr.html
[E]
[D]
[R]
π refresolve.html
[E]
[D]
[R]
π refresphdr.html
[E]
[D]
[R]
π refsess.html
[E]
[D]
[R]
π refsessflags.html
[E]
[D]
[R]
π refshave.html
[E]
[D]
[R]
π refsockinit.html
[E]
[D]
[R]
π refsslca.html
[E]
[D]
[R]
π refsslcert2.html
[E]
[D]
[R]
π refsslcertio.html
[E]
[D]
[R]
π refssldname.html
[E]
[D]
[R]
π refsslvfy.html
[E]
[D]
[R]
π refstatus.html
[E]
[D]
[R]
π reftok.html
[E]
[D]
[R]
π refvers.html
[E]
[D]
[R]
π refxml.html
[E]
[D]
[R]
π security.html
[E]
[D]
[R]
π using.html
[E]
[D]
[R]
π xml.html
[E]
[D]
[R]
Editing: refreqbody.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ne_set_request_body_buffer</title><link rel="stylesheet" type="text/css" href="../manual.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="neon HTTP/WebDAV client library"><link rel="up" href="ref.html" title="neon API reference"><link rel="prev" href="refreqflags.html" title="ne_set_request_flag"><link rel="next" href="refauth.html" title="ne_set_server_auth"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ne_set_request_body_buffer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refreqflags.html">Prev</a>Β </td><th width="60%" align="center">neon API reference</th><td width="20%" align="right">Β <a accesskey="n" href="refauth.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refreqbody"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ne_set_request_body_buffer, ne_set_request_body_fd, ne_set_request_body_fd64 β include a message body with a request</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include <ne_request.h></pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ne_set_request_body_buffer</b>(</code></td><td>ne_request *<var class="pdparam">req</var>, </td></tr><tr><td>Β </td><td>const char *<var class="pdparam">buf</var>, </td></tr><tr><td>Β </td><td>size_t <var class="pdparam">count</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">ne_set_request_body_fd</b>(</code></td><td>ne_request *<var class="pdparam">req</var>, </td></tr><tr><td>Β </td><td>int <var class="pdparam">fd</var>, </td></tr><tr><td>Β </td><td>off_t <var class="pdparam">begin</var>, </td></tr><tr><td>Β </td><td>off_t <var class="pdparam">length</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">Β </div></div></div><div class="refsect1"><a name="idm140368849848704"></a><h2>Description</h2><p>The <code class="function">ne_set_request_body_buffer</code> function specifies that a message body should be included with the body, which is stored in the <code class="parameter">count</code> bytes buffer <code class="parameter">buf</code>.</p><p>The <code class="function">ne_set_request_body_fd</code> 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 <code class="parameter">fd</code>, which must be a associated with a seekable file (not a pipe, socket, or FIFO). <code class="parameter">count</code> bytes are read, beginning at offset <code class="parameter">begin</code> (hence, passing <code class="parameter">begin</code> as zero means the body is read from the beginning of the file).</p><p>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 <code class="function">ne_set_request_body_buffer</code> nor the file descriptor passed to <code class="function">ne_set_request_body_fd</code> are copied internally.</p></div><div class="refsect1"><a name="idm140368849839904"></a><h2>See also</h2><p><a class="xref" href="refreq.html#ne_request_create">ne_request_create</a></p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refreqflags.html">Prev</a>Β </td><td width="20%" align="center"><a accesskey="u" href="ref.html">Up</a></td><td width="40%" align="right">Β <a accesskey="n" href="refauth.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ne_set_request_flagΒ </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Β ne_set_server_auth</td></tr></table></div></body></html>
Save