• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/docs/examples/

Lines Matching defs:curl

55 #include <curl/curl.h>
71 static void rtsp_options(CURL *curl, const char *uri)
75 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
76 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS);
77 my_curl_easy_perform(curl);
82 static void rtsp_describe(CURL *curl, const char *uri,
95 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp);
96 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE);
97 my_curl_easy_perform(curl);
98 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout);
105 static void rtsp_setup(CURL *curl, const char *uri, const char *transport)
110 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
111 my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport);
112 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP);
113 my_curl_easy_perform(curl);
118 static void rtsp_play(CURL *curl, const char *uri, const char *range)
122 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
123 my_curl_easy_setopt(curl, CURLOPT_RANGE, range);
124 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY);
125 my_curl_easy_perform(curl);
130 static void rtsp_teardown(CURL *curl, const char *uri)
134 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN);
135 my_curl_easy_perform(curl);
215 /* initialize curl */
219 CURL *curl;
222 /* initialize this curl session */
223 curl = curl_easy_init();
224 if (curl != NULL) {
225 my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
226 my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
227 my_curl_easy_setopt(curl, CURLOPT_WRITEHEADER, stdout);
228 my_curl_easy_setopt(curl, CURLOPT_URL, url);
232 rtsp_options(curl, uri);
235 rtsp_describe(curl, uri, sdp_filename);
242 rtsp_setup(curl, uri, transport);
246 rtsp_play(curl, uri, range);
252 rtsp_teardown(curl, uri);
255 curl_easy_cleanup(curl);
256 curl = NULL;