1---
2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al.
3SPDX-License-Identifier: curl
4Title: CURLINFO_RTSP_CLIENT_CSEQ
5Section: 3
6Source: libcurl
7See-also:
8  - CURLINFO_RTSP_CSEQ_RECV (3)
9  - CURLINFO_RTSP_SERVER_CSEQ (3)
10  - curl_easy_getinfo (3)
11  - curl_easy_setopt (3)
12---
13
14# NAME
15
16CURLINFO_RTSP_CLIENT_CSEQ - get the next RTSP client CSeq
17
18# SYNOPSIS
19
20~~~c
21#include <curl/curl.h>
22
23CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CLIENT_CSEQ,
24                           long *cseq);
25~~~
26
27# DESCRIPTION
28
29Pass a pointer to a long to receive the next CSeq that is expected to be used
30by the application.
31
32# PROTOCOLS
33
34RTSP
35
36# EXAMPLE
37
38~~~c
39int main(void)
40{
41  CURL *curl = curl_easy_init();
42  if(curl) {
43    CURLcode res;
44    curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
45    res = curl_easy_perform(curl);
46    if(res == CURLE_OK) {
47      long cseq;
48      curl_easy_getinfo(curl, CURLINFO_RTSP_CLIENT_CSEQ, &cseq);
49    }
50    curl_easy_cleanup(curl);
51  }
52}
53~~~
54
55# AVAILABILITY
56
57Added in 7.20.0
58
59# RETURN VALUE
60
61Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
62