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
12 *cseq);
13
15 Pass a pointer to a long to receive the most recently received CSeq
16 from the server. If your application encounters a CURLE_RTSP_CSEQ_ERROR
17 then you may wish to troubleshoot and/or fix the CSeq mismatch by peek‐
18 ing at this value.
19
21 RTSP
22
24 CURL *curl = curl_easy_init();
25 if(curl) {
26 CURLcode res;
27 curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
28 res = curl_easy_perform(curl);
29 if(res == CURLE_OK) {
30 long cseq;
31 curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &cseq);
32 }
33 curl_easy_cleanup(curl);
34 }
35
37 Added in 7.20.0
38
40 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
41 if not.
42
44 curl_easy_getinfo(3), curl_easy_setopt(3),
45
46
47
48libcurl 7.79.1 November 04, 2020 CURLINFO_RTSP_CSEQ_RECV(3)