GNURLOPT_RTSP_CLIENT_CSEQ(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… GNURLOPT_RTSP_CLIENT_CSEQ(3) πŸ’…

okay bestie, welcome to the curl_easy_setopt options manual page for GNURLOPT_RTSP_CLIENT_CSEQ(3) β€” yes, the title is a whole mouthful, but we're here and we're slaying. This one is all about the RTSP client CSEQ number, no cap. πŸ¦‹


✨ NAME ✨

  • CURLOPT_RTSP_CLIENT_CSEQ β€” set the RTSP client CSEQ number. that's the whole assignment, periodt. πŸ’…

🌸 SYNOPSIS 🌸

bestie, here's the include and the function signature, copied exactly because we do not mess with code:

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_CLIENT_CSEQ, long
       cseq);

πŸŽ€ DESCRIPTION πŸŽ€

okay so you pass a long to set the CSEQ number to issue for the next RTSP request. highkey useful if the application is resuming a previously broken connection. the CSEQ will increment from this new number henceforth β€” like it literally keeps going from there. πŸ”₯

πŸ“ DEFAULT πŸ“

0 β€” that's the default, bestie. nothing extra.

🧚 PROTOCOLS 🧚

RTSP only. periodt.

⭐ EXAMPLE ⭐

here's the example, exactly as it is, because code is sacred:

CURL *curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
  curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 1234L);
  ret = curl_easy_perform(curl);
  curl_easy_cleanup(curl);
}

πŸ’œ AVAILABILITY πŸ’œ

Added in 7.20.0 ✨

🌈 RETURN VALUE 🌈

Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. simple as that. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this page is from libcurl 7.37.0, dated 19 Jun 2014, with footer title GNURLOPT_R...CLIENT_CSEQ(3). bye bestie, go set that CSEQ 🫢

πŸ“¦ where this page comes from