diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2016-04-07 10:07:19 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2016-04-07 10:07:40 +0900 |
commit | 31368b6eac8092a307849518e912b4c475c0238a (patch) | |
tree | e5cfc1f4bc28cd81e93a96f9707a0efb143d278a /docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html | |
parent | ff9f0eb35d80c251e9a54162eae18f44349ae59d (diff) | |
download | curl-31368b6eac8092a307849518e912b4c475c0238a.tar.gz curl-31368b6eac8092a307849518e912b4c475c0238a.tar.bz2 curl-31368b6eac8092a307849518e912b4c475c0238a.zip |
Imported Upstream version 7.44.0
Change-Id: Iacb2e604edff0cb8e7687289419ad1908a7a9de6
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html b/docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html index d6d82a1bd..c3bdbfb1f 100644 --- a/docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html +++ b/docs/libcurl/opts/CURLOPT_INTERLEAVEFUNCTION.html @@ -4,15 +4,20 @@ <title>CURLOPT_INTERLEAVEFUNCTION man page</title> <meta name="generator" content="roffit"> <STYLE type="text/css"> -P.level0 { +pre { + overflow: auto; + margin: 0; +} + +P.level0, pre.level0 { padding-left: 2em; } -P.level1 { +P.level1, pre.level1 { padding-left: 4em; } -P.level2 { +P.level2, pre.level2 { padding-left: 6em; } @@ -47,13 +52,15 @@ p.roffit { <p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2> <p class="level0">CURLOPT_INTERLEAVEFUNCTION - callback function for RTSP interleaved data <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2> -<p class="level0"><pre> -<p class="level0">#include <curl/curl.h> - <p class="level0">size_t interleave_callback(void *ptr, size_t size, size_t nmemb, - void *userdata); - <p class="level0">CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERLEAVEFUNCTION, - interleave_callback); - </pre> +<p class="level0"><pre class="level0"> +#include <curl/curl.h> + +size_t interleave_callback(void *ptr, size_t size, size_t nmemb, + void *userdata); + +CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERLEAVEFUNCTION, + interleave_callback); +</pre> <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2> <p class="level0">Pass a pointer to your callback function, which should match the prototype shown above. <p class="level0">This callback function gets called by libcurl as soon as it has received interleaved RTP data. This function gets called for each $ block and therefore contains exactly one upper-layer protocol unit (e.g. one RTP packet). Curl writes the interleaved header as well as the included data for each call. The first byte is always an ASCII dollar sign. The dollar sign is followed by a one byte channel identifier and then a 2 byte integer length in network byte order. See <span Class="emphasis"><a href="http://www.ietf.org/rfc/rfc2326.txt">RFC 2326</a> Section 10.12</span> for more information on how RTP interleaving behaves. If unset or set to NULL, curl will use the default write function. |