GNURLINFO_..._CSEQ_RECV(3)
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
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms