GNURLINFO_...ERVER_CSEQ(3)
π 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
- 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