Lines Matching full:curl
59 #include <curl/curl.h>
77 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
81 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
82 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
83 my_curl_easy_perform(curl); in rtsp_options()
88 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
101 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
102 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
103 my_curl_easy_perform(curl); in rtsp_describe()
104 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
111 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
116 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup()
117 my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport); in rtsp_setup()
118 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP); in rtsp_setup()
119 my_curl_easy_perform(curl); in rtsp_setup()
124 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument
128 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_play()
129 my_curl_easy_setopt(curl, CURLOPT_RANGE, range); in rtsp_play()
130 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY); in rtsp_play()
131 my_curl_easy_perform(curl); in rtsp_play()
134 my_curl_easy_setopt(curl, CURLOPT_RANGE, NULL); in rtsp_play()
139 static void rtsp_teardown(CURL *curl, const char *uri) in rtsp_teardown() argument
143 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN); in rtsp_teardown()
144 my_curl_easy_perform(curl); in rtsp_teardown()
197 printf(" Requires curl V7.20 or greater\n\n"); in main()
230 /* initialize curl */ in main()
234 CURL *curl; in main() local
235 fprintf(stderr, " curl V%s loaded\n", data->version); in main()
237 /* initialize this curl session */ in main()
238 curl = curl_easy_init(); in main()
239 if(curl != NULL) { in main()
240 my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L); in main()
241 my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); in main()
242 my_curl_easy_setopt(curl, CURLOPT_HEADERDATA, stdout); in main()
243 my_curl_easy_setopt(curl, CURLOPT_URL, url); in main()
247 rtsp_options(curl, uri); in main()
250 rtsp_describe(curl, uri, sdp_filename); in main()
257 rtsp_setup(curl, uri, transport); in main()
261 rtsp_play(curl, uri, range); in main()
267 rtsp_teardown(curl, uri); in main()
270 curl_easy_cleanup(curl); in main()
271 curl = NULL; in main()