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