Lines Matching refs:curl
75 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
79 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
80 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
81 my_curl_easy_perform(curl); in rtsp_options()
86 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
99 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
100 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
101 my_curl_easy_perform(curl); in rtsp_describe()
102 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
109 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
114 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup()
115 my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport); in rtsp_setup()
116 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP); in rtsp_setup()
117 my_curl_easy_perform(curl); in rtsp_setup()
122 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument
126 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_play()
127 my_curl_easy_setopt(curl, CURLOPT_RANGE, range); in rtsp_play()
128 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY); in rtsp_play()
129 my_curl_easy_perform(curl); in rtsp_play()
134 static void rtsp_teardown(CURL *curl, const char *uri) in rtsp_teardown() argument
138 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN); in rtsp_teardown()
139 my_curl_easy_perform(curl); in rtsp_teardown()
228 CURL *curl; in main() local
232 curl = curl_easy_init(); in main()
233 if(curl != NULL) { in main()
234 my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L); in main()
235 my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); in main()
236 my_curl_easy_setopt(curl, CURLOPT_HEADERDATA, stdout); in main()
237 my_curl_easy_setopt(curl, CURLOPT_URL, url); in main()
241 rtsp_options(curl, uri); in main()
244 rtsp_describe(curl, uri, sdp_filename); in main()
251 rtsp_setup(curl, uri, transport); in main()
255 rtsp_play(curl, uri, range); in main()
261 rtsp_teardown(curl, uri); in main()
264 curl_easy_cleanup(curl); in main()
265 curl = NULL; in main()