quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

CURLOPT_RTSP_SERVER_CSEQ.md (1188B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Title: CURLOPT_RTSP_SERVER_CSEQ
      5 Section: 3
      6 Source: libcurl
      7 See-also:
      8   - CURLINFO_RTSP_SERVER_CSEQ (3)
      9   - CURLOPT_RTSP_CLIENT_CSEQ (3)
     10   - CURLOPT_RTSP_STREAM_URI (3)
     11 Protocol:
     12   - RTSP
     13 Added-in: 7.20.0
     14 ---
     15 
     16 # NAME
     17 
     18 CURLOPT_RTSP_SERVER_CSEQ - RTSP server CSEQ number
     19 
     20 # SYNOPSIS
     21 
     22 ~~~c
     23 #include <curl/curl.h>
     24 
     25 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_SERVER_CSEQ, long cseq);
     26 ~~~
     27 
     28 # DESCRIPTION
     29 
     30 Pass a long to set the CSEQ number to expect for the next RTSP Server to
     31 Client request. **NOTE**: this feature (listening for Server requests) is
     32 unimplemented.
     33 
     34 # DEFAULT
     35 
     36 0
     37 
     38 # %PROTOCOLS%
     39 
     40 # EXAMPLE
     41 
     42 ~~~c
     43 int 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 
     60 curl_easy_setopt(3) returns a CURLcode indicating success or error.
     61 
     62 CURLE_OK (0) means everything was OK, non-zero means an error occurred, see
     63 libcurl-errors(3).