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
12       *cseq);
13

DESCRIPTION

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

PROTOCOLS

21       RTSP
22

EXAMPLE

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

AVAILABILITY

37       Added in 7.20.0
38

RETURN VALUE

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

SEE ALSO

44       curl_easy_getinfo(3), curl_easy_setopt(3),
45
46
47
48libcurl 7.61.1                   May 31, 2017       CURLINFO_RTSP_CSEQ_RECV(3)
Impressum