CURLINFO_RTSP_CSEQ_RECV.3 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .\" generated by cd2nroff 0.1 from CURLINFO_RTSP_CSEQ_RECV.md
  2. .TH CURLINFO_RTSP_CSEQ_RECV 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLINFO_RTSP_CSEQ_RECV \- get the recently received CSeq
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_RTSP_CSEQ_RECV, long *cseq);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a pointer to a long to receive the most recently received CSeq from the
  12. server. If your application encounters a \fICURLE_RTSP_CSEQ_ERROR\fP then you
  13. may wish to troubleshoot and/or fix the CSeq mismatch by peeking at this
  14. value.
  15. .SH PROTOCOLS
  16. This functionality affects rtsp only
  17. .SH EXAMPLE
  18. .nf
  19. int main(void)
  20. {
  21. CURL *curl = curl_easy_init();
  22. if(curl) {
  23. CURLcode res;
  24. curl_easy_setopt(curl, CURLOPT_URL, "rtsp://rtsp.example.com");
  25. res = curl_easy_perform(curl);
  26. if(res == CURLE_OK) {
  27. long cseq;
  28. curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &cseq);
  29. }
  30. curl_easy_cleanup(curl);
  31. }
  32. }
  33. .fi
  34. .SH AVAILABILITY
  35. Added in curl 7.20.0
  36. .SH RETURN VALUE
  37. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
  38. .SH SEE ALSO
  39. .BR CURLINFO_RTSP_SERVER_CSEQ (3),
  40. .BR curl_easy_getinfo (3),
  41. .BR curl_easy_setopt (3)