1CURLINFO_RTSP_SERVER_CSEQ(3)curl_easy_getinfo optionCsURLINFO_RTSP_SERVER_CSEQ(3)
2
3
4

NAME

6       CURLINFO_RTSP_SERVER_CSEQ - get the next RTSP server CSeq
7

SYNOPSIS

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

DESCRIPTION

15       Pass a pointer to a long to receive the next CSeq that will be expected
16       by the application.
17
18       Listening for server initiated requests is not implemented!
19
20       Applications wishing to resume an RTSP session  on  another  connection
21       should retrieve this info before closing the active connection.
22

PROTOCOLS

24       RTSP
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         CURLcode res;
30         curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
31         res = curl_easy_perform(curl);
32         if(res == CURLE_OK) {
33           long cseq;
34           curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &cseq);
35         }
36         curl_easy_cleanup(curl);
37       }
38

AVAILABILITY

40       Added in 7.20.0
41

RETURN VALUE

43       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
44       if not.
45

SEE ALSO

47       curl_easy_getinfo(3), curl_easy_setopt(3),
48
49
50
51libcurl 8.0.1                  January 02, 2023   CURLINFO_RTSP_SERVER_CSEQ(3)
Impressum