1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Title: CURLOPT_RTSP_SERVER_CSEQ
5Section: 3
6Source: libcurl
7See-also:
8  - CURLINFO_RTSP_SERVER_CSEQ (3)
9  - CURLOPT_RTSP_CLIENT_CSEQ (3)
10  - CURLOPT_RTSP_STREAM_URI (3)
11Protocol:
12  - RTSP
13Added-in: 7.20.0
14---
15
16# NAME
17
18CURLOPT_RTSP_SERVER_CSEQ - RTSP server CSEQ number
19
20# SYNOPSIS
21
22~~~c
23#include <curl/curl.h>
24
25CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_SERVER_CSEQ, long cseq);
26~~~
27
28# DESCRIPTION
29
30Pass a long to set the CSEQ number to expect for the next RTSP Server to
31Client request. **NOTE**: this feature (listening for Server requests) is
32unimplemented.
33
34# DEFAULT
35
360
37
38# %PROTOCOLS%
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_SERVER_CSEQ, 1234L);
50    res = curl_easy_perform(curl);
51    curl_easy_cleanup(curl);
52  }
53}
54~~~
55
56# %AVAILABILITY%
57
58# RETURN VALUE
59
60Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
61