GNURLINFO_...ERVER_CSEQ(3)

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

πŸŽ€ NAME πŸŽ€

okay so this page is from the curl_easy_getinfo options manual, title GNURLINFO_...ERVER_CSEQ(3), and the actual star of the show is CURLINFO_RTSP_SERVER_CSEQ β€” get the next RTSP server CSeq πŸ’…

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_SERVER_CSEQ, long
*cseq);

πŸ¦‹ DESCRIPTION πŸ¦‹

You pass in a pointer to a long, and it receives the next CSeq that will be expected by the application. no cap, that’s the whole vibe 🫢

The source literally says: β€œLlistening for server initiated requests is currently unimplemented!” 😭 so yeah, that part is a whole currently unimplemented situation, bestie.

Applications wishing to resume an RTSP session on another connection should retrieve this info before closing the active connection. like, grab it before you dip πŸ‘‘

🌸 PROTOCOLS 🌸

RTSP β€” that’s the one πŸ’–

🧚 EXAMPLE 🧚

CURL *curl = curl_easy_init();
if(curl) {
  CURLcode res;
  curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
  res = curl_easy_perform(curl);
  if(res == CURLE_OK) {
    long cseq;
    curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &cseq);
  }
  curl_easy_cleanup(curl);
}

⭐ AVAILABILITY ⭐

Added in 7.20.0 β€” iconic since day one, fr fr πŸŽ€

πŸ’œ RETURN VALUE πŸ’œ

Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. simple as that, bestie ✨

🌈 SEE ALSO 🌈

curl_easy_getinfo(3), curl_easy_setopt(3),


and that’s the page, bestie 🫢 signing off from the libcurl 7.44.0 era, dated 1 Sep 2015 πŸ’–βœ¨

πŸ“¦ where this page comes from