1---
2c: Copyright (C) Daniel Stenberg, <daniel.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)
12---
13
14# NAME
15
16CURLOPT_RTSP_CLIENT_CSEQ - RTSP client CSEQ number
17
18# SYNOPSIS
19
20~~~c
21#include <curl/curl.h>
22
23CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_CLIENT_CSEQ, long cseq);
24~~~
25
26# DESCRIPTION
27
28Pass a long to set the CSEQ number to issue for the next RTSP request. Useful
29if the application is resuming a previously broken connection. The CSEQ
30increments from this new number henceforth.
31
32# DEFAULT
33
340
35
36# PROTOCOLS
37
38RTSP
39
40# EXAMPLE
41
42~~~c
43int main(void)
44{
45  CURL *curl = curl_easy_init();
46  if(curl) {
47    CURLcode res;
48    curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
49    curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 1234L);
50    res = curl_easy_perform(curl);
51    curl_easy_cleanup(curl);
52  }
53}
54~~~
55
56# AVAILABILITY
57
58Added in 7.20.0
59
60# RETURN VALUE
61
62Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
63