CURLINFO_RTSP_CLIENT_CSEQ(3)
β¨ CURLINFO_RTSP_CLIENT_CSEQ β¨
okay so bestie, welcome to the libcurl Library Functions Manual β this little page is all about CURLINFO_RTSP_CLIENT_CSEQ, no cap π
π NAME π
CURLINFO_RTSP_CLIENT_CSEQ β literally just gives you the next RTSP client CSeq πΈ
π¦ SYNOPSIS π¦
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CLIENT_CSEQ,
long *cseq);
π DESCRIPTION π
So here's the vibe: you pass in a pointer to a long, and it receives the next CSeq that the application is expected to use. That's it, that's the whole thing π«Ά
π PROTOCOLS π
ngl this one is rtsp only β it does not apply to anything else, periodt β¨
π EXAMPLE π
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode result;
curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
result = curl_easy_perform(curl);
if(result == CURLE_OK) {
long cseq;
curl_easy_getinfo(curl, CURLINFO_RTSP_CLIENT_CSEQ, &cseq);
}
curl_easy_cleanup(curl);
}
}
look at that, main character energy from start to curl_easy_cleanup π
β AVAILABILITY β
Added in curl 7.20.0 β she's been iconic for a minute π
π§ RETURN VALUE π§
curl_easy_getinfo(3) returns a CURLcode indicating success or error.
CURLE_OK (0) means everything was OK π β and a non-zero value means an error occurred, so go check libcurl-errors(3), iykyk π
π₯ SEE ALSO π₯
π and that's the page, bestie π
cute little sign-off: this gem comes from libcurl, dated 2026-10-12, and yeah β the footer still says CURLINFO_R...CLIENT_CSEQ(3) because the title got cut off in the terminal, but we know who she is π slay β¨
π¦ where this page comes from
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms