1--- 2c: Copyright (C) Daniel Stenberg, <daniel.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) 11--- 12 13# NAME 14 15CURLINFO_RTSP_SERVER_CSEQ - get the next RTSP server CSeq 16 17# SYNOPSIS 18 19~~~c 20#include <curl/curl.h> 21 22CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_SERVER_CSEQ, 23 long *cseq); 24~~~ 25 26# DESCRIPTION 27 28Pass a pointer to a long to receive the next CSeq that is expected to be used 29by the application. 30 31Listening for server initiated requests is not implemented! 32 33Applications wishing to resume an RTSP session on another connection should 34retrieve this info before closing the active connection. 35 36# PROTOCOLS 37 38RTSP 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://rtsp.example.com"); 49 res = curl_easy_perform(curl); 50 if(res == CURLE_OK) { 51 long cseq; 52 curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &cseq); 53 } 54 curl_easy_cleanup(curl); 55 } 56} 57~~~ 58 59# AVAILABILITY 60 61Added in 7.20.0 62 63# RETURN VALUE 64 65Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. 66