Lines Matching refs:curl
71 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
75 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
76 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
77 my_curl_easy_perform(curl); in rtsp_options()
82 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
95 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
96 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
97 my_curl_easy_perform(curl); in rtsp_describe()
98 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
105 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
110 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup()
111 my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport); in rtsp_setup()
112 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP); in rtsp_setup()
113 my_curl_easy_perform(curl); in rtsp_setup()
118 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument
122 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_play()
123 my_curl_easy_setopt(curl, CURLOPT_RANGE, range); in rtsp_play()
124 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY); in rtsp_play()
125 my_curl_easy_perform(curl); in rtsp_play()
130 static void rtsp_teardown(CURL *curl, const char *uri) in rtsp_teardown() argument
134 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN); in rtsp_teardown()
135 my_curl_easy_perform(curl); in rtsp_teardown()
219 CURL *curl; in main() local
223 curl = curl_easy_init(); in main()
224 if (curl != NULL) { in main()
225 my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L); in main()
226 my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); in main()
227 my_curl_easy_setopt(curl, CURLOPT_HEADERDATA, stdout); in main()
228 my_curl_easy_setopt(curl, CURLOPT_URL, url); in main()
232 rtsp_options(curl, uri); in main()
235 rtsp_describe(curl, uri, sdp_filename); in main()
242 rtsp_setup(curl, uri, transport); in main()
246 rtsp_play(curl, uri, range); in main()
252 rtsp_teardown(curl, uri); in main()
255 curl_easy_cleanup(curl); in main()
256 curl = NULL; in main()