CURLINFO_RTSP_SERVER_CSEQ.3 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .\" generated by cd2nroff 0.1 from CURLINFO_RTSP_SERVER_CSEQ.md
  2. .TH CURLINFO_RTSP_SERVER_CSEQ 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLINFO_RTSP_SERVER_CSEQ \- get the next RTSP server CSeq
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_SERVER_CSEQ,
  9. long *cseq);
  10. .fi
  11. .SH DESCRIPTION
  12. Pass a pointer to a long to receive the next CSeq that is expected to be used
  13. by the application.
  14. Listening for server initiated requests is not implemented!
  15. Applications wishing to resume an RTSP session on another connection should
  16. retrieve this info before closing the active connection.
  17. .SH PROTOCOLS
  18. This functionality affects rtsp only
  19. .SH EXAMPLE
  20. .nf
  21. int main(void)
  22. {
  23. CURL *curl = curl_easy_init();
  24. if(curl) {
  25. CURLcode res;
  26. curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
  27. res = curl_easy_perform(curl);
  28. if(res == CURLE_OK) {
  29. long cseq;
  30. curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &cseq);
  31. }
  32. curl_easy_cleanup(curl);
  33. }
  34. }
  35. .fi
  36. .SH AVAILABILITY
  37. Added in curl 7.20.0
  38. .SH RETURN VALUE
  39. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  40. .SH SEE ALSO
  41. .BR CURLINFO_RTSP_CSEQ_RECV (3),
  42. .BR curl_easy_getinfo (3),
  43. .BR curl_easy_setopt (3)