1CURLOPT_INTERLEAVEDATA(3) curl_easy_setopt options CURLOPT_INTERLEAVEDATA(3)
2
3
4
6 CURLOPT_INTERLEAVEDATA - pointer passed to RTSP interleave callback
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERLEAVEDATA, void *pointer);
12
14 This is the userdata pointer that will be passed to CURLOPT_INTERLEAVEā
15 FUNCTION(3) when interleaved RTP data is received. If the interleave
16 function callback is not set, this pointer is not used anywhere.
17
19 NULL
20
22 RTSP
23
25 static size_t rtp_write(void *ptr, size_t size, size_t nmemb, void *user)
26 {
27 struct local *l = (struct local *)user;
28 /* take care of the packet in 'ptr', then return... */
29 return size * nmemb;
30 }
31 {
32 struct local rtp_data;
33 curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
34 curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &rtp_data);
35 }
36
38 Added in 7.20.0
39
41 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
42 if not.
43
45 CURLOPT_INTERLEAVEFUNCTION(3), CURLOPT_RTSP_REQUEST(3),
46
47
48
49libcurl 8.0.1 January 02, 2023 CURLOPT_INTERLEAVEDATA(3)