• Home
  • Raw
  • Download

Lines Matching full:curl

59 #include <curl/curl.h>
80 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
84 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
85 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
86 my_curl_easy_perform(curl); in rtsp_options()
91 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
104 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
105 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
106 my_curl_easy_perform(curl); in rtsp_describe()
107 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
114 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
119 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup()
120 my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport); in rtsp_setup()
121 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP); in rtsp_setup()
122 my_curl_easy_perform(curl); in rtsp_setup()
127 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument
131 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_play()
132 my_curl_easy_setopt(curl, CURLOPT_RANGE, range); in rtsp_play()
133 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY); in rtsp_play()
134 my_curl_easy_perform(curl); in rtsp_play()
137 my_curl_easy_setopt(curl, CURLOPT_RANGE, NULL); in rtsp_play()
142 static void rtsp_teardown(CURL *curl, const char *uri) in rtsp_teardown() argument
146 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN); in rtsp_teardown()
147 my_curl_easy_perform(curl); in rtsp_teardown()
200 printf(" Requires curl V7.20 or greater\n\n"); in main()
233 /* initialize curl */ in main()
237 CURL *curl; in main() local
238 fprintf(stderr, " curl V%s loaded\n", data->version); in main()
240 /* initialize this curl session */ in main()
241 curl = curl_easy_init(); in main()
242 if(curl != NULL) { in main()
243 my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L); in main()
244 my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); in main()
245 my_curl_easy_setopt(curl, CURLOPT_HEADERDATA, stdout); in main()
246 my_curl_easy_setopt(curl, CURLOPT_URL, url); in main()
250 rtsp_options(curl, uri); in main()
253 rtsp_describe(curl, uri, sdp_filename); in main()
260 rtsp_setup(curl, uri, transport); in main()
264 rtsp_play(curl, uri, range); in main()
270 rtsp_teardown(curl, uri); in main()
273 curl_easy_cleanup(curl); in main()
274 curl = NULL; in main()