GNURLOPT_INTERLEAVEDATA(3)
π GNURLOPT_INTERLEAVEDATA(3) π
okay so bestie, this lil page comes from the curl_easy_setopt options manual, and the manual name is literally GNURLOPT_INTERLEAVEDATA(3). we are gonna get into it, no cap. π«Ά
β¨ NAME β¨
CURLOPT_INTERLEAVEDATA β custom pointer passed to RTSP interleave callback. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERLEAVEDATA, void
*pointer);
πΈ DESCRIPTION πΈ
bestie, this is the userdata pointer that gets passed to CURLOPT_INTERLEAVEFUNCTION(3) when interleaved RTP data is received. β¨
and hear me out: if the interleave function callback is not set, then this pointer is not used anywhere. like, it's just sitting there, iconic but unemployed. π
π DEFAULT π
NULL β literally the default-est default, nothing set, no pointer, bye. π
π PROTOCOLS π
RTSP β that's the protocol for this one. periodt. π
π EXAMPLE π
here's the example, kept exactly as the manual gives it, bestie:
static size_t rtp_write(void *ptr, size_t size, size_t nmemb, void *user)
{
struct local *l = (struct local *)user;
/* take care of the packet in 'ptr', then return... */
return size * nmemb;
}
{
struct local rtp_data;
curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &rtp_data);
}
β AVAILABILITY β
Added in 7.20.0. yes queen, she's been around. π
π₯ RETURN VALUE π₯
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. simple as that. π
π SEE ALSO π
go peek at these, iykyk:
(yes, the original has that trailing comma. we respect the comma. π)
mwah π this page was living in libcurl 7.37.0, dated 19 Jun 2014, and the footer name is GNURLOPT_INTERLEAVEDATA(3) β periodt. πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms