1CURLINFO_RTSP_CSEQ_RECV(3) curl_easy_getinfo optionsCURLINFO_RTSP_CSEQ_RECV(3)
2
3
4

NAME

6       CURLINFO_RTSP_CSEQ_RECV - get the recently received CSeq
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CSEQ_RECV, long *cseq);
12

DESCRIPTION

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

PROTOCOLS

20       RTSP
21

EXAMPLE

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

AVAILABILITY

36       Added in 7.20.0
37

RETURN VALUE

39       Returns CURLE_OK if the option is supported,  and  CURLE_UNKNOWN_OPTION
40       if not.
41

SEE ALSO

43       curl_easy_getinfo(3), curl_easy_setopt(3),
44
45
46
47libcurl 7.82.0                 November 26, 2021    CURLINFO_RTSP_CSEQ_RECV(3)
Impressum