CURLOPT_RTSP_CLIENT_CSEQ.3 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .\" generated by cd2nroff 0.1 from CURLOPT_RTSP_CLIENT_CSEQ.md
  2. .TH CURLOPT_RTSP_CLIENT_CSEQ 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_RTSP_CLIENT_CSEQ \- RTSP client CSEQ number
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_CLIENT_CSEQ, long cseq);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a long to set the CSEQ number to issue for the next RTSP request. Useful
  12. if the application is resuming a previously broken connection. The CSEQ
  13. increments from this new number henceforth.
  14. .SH DEFAULT
  15. 0
  16. .SH PROTOCOLS
  17. This functionality affects rtsp only
  18. .SH EXAMPLE
  19. .nf
  20. int main(void)
  21. {
  22. CURL *curl = curl_easy_init();
  23. if(curl) {
  24. CURLcode res;
  25. curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
  26. curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 1234L);
  27. res = curl_easy_perform(curl);
  28. curl_easy_cleanup(curl);
  29. }
  30. }
  31. .fi
  32. .SH AVAILABILITY
  33. Added in curl 7.20.0
  34. .SH RETURN VALUE
  35. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  36. .SH SEE ALSO
  37. .BR CURLINFO_RTSP_CLIENT_CSEQ (3),
  38. .BR CURLINFO_RTSP_SERVER_CSEQ (3),
  39. .BR CURLOPT_RTSP_REQUEST (3),
  40. .BR CURLOPT_RTSP_SERVER_CSEQ (3)