CURLINFO_RTSP_CLIENT_CSEQ.3 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .\" generated by cd2nroff 0.1 from CURLINFO_RTSP_CLIENT_CSEQ.md
  2. .TH CURLINFO_RTSP_CLIENT_CSEQ 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLINFO_RTSP_CLIENT_CSEQ \- get the next RTSP client CSeq
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CLIENT_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. .SH PROTOCOLS
  15. This functionality affects rtsp only
  16. .SH EXAMPLE
  17. .nf
  18. int main(void)
  19. {
  20. CURL *curl = curl_easy_init();
  21. if(curl) {
  22. CURLcode res;
  23. curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
  24. res = curl_easy_perform(curl);
  25. if(res == CURLE_OK) {
  26. long cseq;
  27. curl_easy_getinfo(curl, CURLINFO_RTSP_CLIENT_CSEQ, &cseq);
  28. }
  29. curl_easy_cleanup(curl);
  30. }
  31. }
  32. .fi
  33. .SH AVAILABILITY
  34. Added in curl 7.20.0
  35. .SH RETURN VALUE
  36. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  37. .SH SEE ALSO
  38. .BR CURLINFO_RTSP_CSEQ_RECV (3),
  39. .BR CURLINFO_RTSP_SERVER_CSEQ (3),
  40. .BR curl_easy_getinfo (3),
  41. .BR curl_easy_setopt (3)