CURLINFO_RTSP_SERVER_CSEQ(3)
π NAME π
okay so bestie, this page is all about CURLINFO_RTSP_SERVER_CSEQ β literally the next RTSP server CSeq, no cap π
It's a little libcurl info request (from the Library Functions Manual, iykyk) and it's lowkey iconic for anyone doing RTSP things.
β¨ SYNOPSIS β¨
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_SERVER_CSEQ,
long *cseq);
π¦ DESCRIPTION π¦
so the way this works is you pass a pointer to a long, and it receives the next CSeq that's expected to be used by the application. that's it, that's the whole vibe π
real talk though β listening for server initiated requests is not implemented. so don't come for libcurl about that, it's just not a thing here π
and this next bit is the main-character-energy part: applications wishing to resume an RTSP session on another connection should retrieve this info before closing the active connection. like grab the info while you still can, bestie, because once the connection's gone it's gone π
π PROTOCOLS π
this functionality affects rtsp only β periodt π«Ά
π₯ EXAMPLE π₯
here's the whole thing in action, copied exactly, don't @ me:
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_SERVER_CSEQ, &cseq);
}
curl_easy_cleanup(curl);
}
}
β AVAILABILITY β
Added in curl 7.20.0 β vintage but still slaying π
π RETURN VALUE π
curl_easy_getinfo(3) returns a CURLcode indicating success or error, fr fr.
CURLE_OK(0) means everything was OK β¨- non-zero means an error occurred β go check
libcurl-errors(3)bestie π
π SEE ALSO π
go read those too, i'm obsessed with a well-rounded education π§
that's the whole page, bestie β¨ source is libcurl, version date 2026-10-12, and the page is CURLINFO_R...SERVER_CSEQ(3) β mwah, go get that CSeq π
π
π¦ 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