1--- 2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3SPDX-License-Identifier: curl 4Title: CURLINFO_RTSP_SERVER_CSEQ 5Section: 3 6Source: libcurl 7See-also: 8 - CURLINFO_RTSP_CSEQ_RECV (3) 9 - curl_easy_getinfo (3) 10 - curl_easy_setopt (3) 11Protocol: 12 - RTSP 13--- 14 15# NAME 16 17CURLINFO_RTSP_SERVER_CSEQ - get the next RTSP server CSeq 18 19# SYNOPSIS 20 21~~~c 22#include <curl/curl.h> 23 24CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_SERVER_CSEQ, 25 long *cseq); 26~~~ 27 28# DESCRIPTION 29 30Pass a pointer to a long to receive the next CSeq that is expected to be used 31by the application. 32 33Listening for server initiated requests is not implemented! 34 35Applications wishing to resume an RTSP session on another connection should 36retrieve this info before closing the active connection. 37 38# EXAMPLE 39 40~~~c 41int main(void) 42{ 43 CURL *curl = curl_easy_init(); 44 if(curl) { 45 CURLcode res; 46 curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com"); 47 res = curl_easy_perform(curl); 48 if(res == CURLE_OK) { 49 long cseq; 50 curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &cseq); 51 } 52 curl_easy_cleanup(curl); 53 } 54} 55~~~ 56 57# AVAILABILITY 58 59Added in 7.20.0 60 61# RETURN VALUE 62 63Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. 64