GNURLINFO_..._CSEQ_RECV(3)

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

okay bestie, welcome to the GNURLINFO_..._CSEQ_RECV(3) page πŸ’… β€” it lives in the curl_easy_getinfo options section, and it's here to help you read the most recently received CSeq. let's gooo ✨

πŸŽ€ NAME πŸŽ€

CURLINFO_RTSP_CSEQ_RECV β€” get the recently received CSeq. that's the whole vibe, no cap. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnurl/curl.h>

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

🌸 DESCRIPTION 🌸

so you pass a pointer to a long, and it receives the most recently received CSeq from the server. iconic. 🫢

if your application encounters a CURLE_RTSP_CSEQ_ERROR, then you may wish to troubleshoot and/or fix the CSeq mismatch by peeking at this value. iykyk πŸ‘€

🧚 PROTOCOLS 🧚

RTSP β€” that's the protocol, bestie. πŸ¦‹

πŸ”₯ 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_CSEQ_RECV, &cseq);
  }
  curl_easy_cleanup(curl);
}

🌈 AVAILABILITY 🌈

Added in 7.20.0 β€” she's been around, periodt. πŸ’…

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. simple, clean, slay. ✨

πŸ“ SEE ALSO πŸ“


xoxo πŸ’– this page is from libcurl 7.44.0, dated 12 Sep 2015 β€” bye bestie! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from