1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Title: CURLOPT_RTSP_CLIENT_CSEQ
5Section: 3
6Source: libcurl
7See-also:
8  - CURLINFO_RTSP_CLIENT_CSEQ (3)
9  - CURLINFO_RTSP_SERVER_CSEQ (3)
10  - CURLOPT_RTSP_REQUEST (3)
11  - CURLOPT_RTSP_SERVER_CSEQ (3)
12Protocol:
13  - RTSP
14---
15
16# NAME
17
18CURLOPT_RTSP_CLIENT_CSEQ - RTSP client CSEQ number
19
20# SYNOPSIS
21
22~~~c
23#include <curl/curl.h>
24
25CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_CLIENT_CSEQ, long cseq);
26~~~
27
28# DESCRIPTION
29
30Pass a long to set the CSEQ number to issue for the next RTSP request. Useful
31if the application is resuming a previously broken connection. The CSEQ
32increments from this new number henceforth.
33
34# DEFAULT
35
360
37
38# EXAMPLE
39
40~~~c
41int main(void)
42{
43  CURL *curl = curl_easy_init();
44  if(curl) {
45    CURLcode res;
46    curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
47    curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 1234L);
48    res = curl_easy_perform(curl);
49    curl_easy_cleanup(curl);
50  }
51}
52~~~
53
54# AVAILABILITY
55
56Added in 7.20.0
57
58# RETURN VALUE
59
60Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
61