1--- 2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al. 3SPDX-License-Identifier: curl 4Title: CURLINFO_RTSP_CSEQ_RECV 5Section: 3 6Source: libcurl 7See-also: 8 - CURLINFO_RTSP_SERVER_CSEQ (3) 9 - curl_easy_getinfo (3) 10 - curl_easy_setopt (3) 11--- 12 13# NAME 14 15CURLINFO_RTSP_CSEQ_RECV - get the recently received CSeq 16 17# SYNOPSIS 18 19~~~c 20#include <curl/curl.h> 21 22CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CSEQ_RECV, long *cseq); 23~~~ 24 25# DESCRIPTION 26 27Pass a pointer to a long to receive the most recently received CSeq from the 28server. If your application encounters a *CURLE_RTSP_CSEQ_ERROR* then you 29may wish to troubleshoot and/or fix the CSeq mismatch by peeking at this 30value. 31 32# PROTOCOLS 33 34RTSP 35 36# EXAMPLE 37 38~~~c 39int main(void) 40{ 41 CURL *curl = curl_easy_init(); 42 if(curl) { 43 CURLcode res; 44 curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com"); 45 res = curl_easy_perform(curl); 46 if(res == CURLE_OK) { 47 long cseq; 48 curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &cseq); 49 } 50 curl_easy_cleanup(curl); 51 } 52} 53~~~ 54 55# AVAILABILITY 56 57Added in 7.20.0 58 59# RETURN VALUE 60 61Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. 62