1CURLINFO_RTSP_CSEQ_RECV(3) curl_easy_getinfo optionsCURLINFO_RTSP_CSEQ_RECV(3)
2
3
4
6 CURLINFO_RTSP_CSEQ_RECV - get the recently received CSeq
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CSEQ_RECV, long *cseq);
12
14 Pass a pointer to a long to receive the most recently received CSeq
15 from the server. If your application encounters a CURLE_RTSP_CSEQ_ERROR
16 then you may wish to troubleshoot and/or fix the CSeq mismatch by peek‐
17 ing at this value.
18
20 RTSP
21
23 CURL *curl = curl_easy_init();
24 if(curl) {
25 CURLcode res;
26 curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
27 res = curl_easy_perform(curl);
28 if(res == CURLE_OK) {
29 long cseq;
30 curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &cseq);
31 }
32 curl_easy_cleanup(curl);
33 }
34
36 Added in 7.20.0
37
39 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
40 if not.
41
43 curl_easy_getinfo(3), curl_easy_setopt(3),
44
45
46
47libcurl 8.0.1 January 02, 2023 CURLINFO_RTSP_CSEQ_RECV(3)