1CURLOPT_INTERLEAVEDATA(3)  curl_easy_setopt options  CURLOPT_INTERLEAVEDATA(3)
2
3
4

NAME

6       CURLOPT_INTERLEAVEDATA - custom pointer passed to RTSP interleave call‐
7       back
8

SYNOPSIS

10       #include <curl/curl.h>
11
12       CURLcode curl_easy_setopt(CURL  *handle,  CURLOPT_INTERLEAVEDATA,  void
13       *pointer);
14

DESCRIPTION

16       This is the userdata pointer that will be passed to CURLOPT_INTERLEAVE‐
17       FUNCTION(3) when interleaved RTP data is received.  If  the  interleave
18       function callback is not set, this pointer is not used anywhere.
19

DEFAULT

21       NULL
22

PROTOCOLS

24       RTSP
25

EXAMPLE

27       static size_t rtp_write(void *ptr, size_t size, size_t nmemb, void *user)
28       {
29         struct local *l = (struct local *)user;
30         /* take care of the packet in 'ptr', then return... */
31         return size * nmemb;
32       }
33       {
34         struct local rtp_data;
35         curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
36         curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &rtp_data);
37       }
38

AVAILABILITY

40       Added in 7.20.0
41

RETURN VALUE

43       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
44       if not.
45

SEE ALSO

47       CURLOPT_INTERLEAVEFUNCTION(3), CURLOPT_RTSP_REQUEST(3),
48
49
50
51libcurl 7.69.1                September 15, 2017     CURLOPT_INTERLEAVEDATA(3)
Impressum