quickjs-tart

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

CURLOPT_RTSP_CLIENT_CSEQ.md (1251B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Title: CURLOPT_RTSP_CLIENT_CSEQ
      5 Section: 3
      6 Source: libcurl
      7 See-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 Protocol:
     13   - RTSP
     14 Added-in: 7.20.0
     15 ---
     16 
     17 # NAME
     18 
     19 CURLOPT_RTSP_CLIENT_CSEQ - RTSP client CSEQ number
     20 
     21 # SYNOPSIS
     22 
     23 ~~~c
     24 #include <curl/curl.h>
     25 
     26 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_CLIENT_CSEQ, long cseq);
     27 ~~~
     28 
     29 # DESCRIPTION
     30 
     31 Pass a long to set the CSEQ number to issue for the next RTSP request. Useful
     32 if the application is resuming a previously broken connection. The CSEQ
     33 increments from this new number henceforth.
     34 
     35 # DEFAULT
     36 
     37 0
     38 
     39 # %PROTOCOLS%
     40 
     41 # EXAMPLE
     42 
     43 ~~~c
     44 int main(void)
     45 {
     46   CURL *curl = curl_easy_init();
     47   if(curl) {
     48     CURLcode res;
     49     curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
     50     curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 1234L);
     51     res = curl_easy_perform(curl);
     52     curl_easy_cleanup(curl);
     53   }
     54 }
     55 ~~~
     56 
     57 # %AVAILABILITY%
     58 
     59 # RETURN VALUE
     60 
     61 curl_easy_setopt(3) returns a CURLcode indicating success or error.
     62 
     63 CURLE_OK (0) means everything was OK, non-zero means an error occurred, see
     64 libcurl-errors(3).