#include <stdio.h>#include <stdlib.h>#include <string.h>#include <termios.h>#include <unistd.h>#include <curl/curl.h>
Go to the source code of this file.
Defines | |
| #define | my_curl_easy_perform(A) |
| #define | my_curl_easy_setopt(A, B, C) |
| #define | VERSION_STR "V1.0" |
Functions | |
| static int | _getch (void) |
| static void | get_media_control_attribute (const char *sdp_filename, char *control) |
| static void | get_sdp_filename (const char *url, char *sdp_filename, size_t namelen) |
| int | main (int argc, char *const argv[]) |
| static void | rtsp_describe (CURL *curl, const char *uri, const char *sdp_filename) |
| static void | rtsp_options (CURL *curl, const char *uri) |
| static void | rtsp_play (CURL *curl, const char *uri, const char *range) |
| static void | rtsp_setup (CURL *curl, const char *uri, const char *transport) |
| static void | rtsp_teardown (CURL *curl, const char *uri) |
| #define my_curl_easy_perform | ( | A | ) |
res = curl_easy_perform(A); \ if(!res) \ fprintf(stderr, "curl_easy_perform(%s) failed: %d\n", #A, res);
Definition at line 70 of file docs/examples/rtsp.c.
| #define my_curl_easy_setopt | ( | A, | |
| B, | |||
| C | |||
| ) |
res = curl_easy_setopt((A), (B), (C)); \ if(!res) \ fprintf(stderr, "curl_easy_setopt(%s, %s, %s) failed: %d\n", \ #A, #B, #C, res);
Definition at line 64 of file docs/examples/rtsp.c.
| #define VERSION_STR "V1.0" |
Definition at line 61 of file docs/examples/rtsp.c.
| static int _getch | ( | void | ) | [static] |
Definition at line 45 of file docs/examples/rtsp.c.
| static void get_media_control_attribute | ( | const char * | sdp_filename, |
| char * | control | ||
| ) | [static] |
Definition at line 161 of file docs/examples/rtsp.c.
| static void get_sdp_filename | ( | const char * | url, |
| char * | sdp_filename, | ||
| size_t | namelen | ||
| ) | [static] |
Definition at line 146 of file docs/examples/rtsp.c.
| int main | ( | int | argc, |
| char *const | argv[] | ||
| ) |
Definition at line 179 of file docs/examples/rtsp.c.
| static void rtsp_describe | ( | CURL * | curl, |
| const char * | uri, | ||
| const char * | sdp_filename | ||
| ) | [static] |
Definition at line 88 of file docs/examples/rtsp.c.
| static void rtsp_options | ( | CURL * | curl, |
| const char * | uri | ||
| ) | [static] |
Definition at line 77 of file docs/examples/rtsp.c.
Definition at line 124 of file docs/examples/rtsp.c.
| static void rtsp_setup | ( | CURL * | curl, |
| const char * | uri, | ||
| const char * | transport | ||
| ) | [static] |
Definition at line 111 of file docs/examples/rtsp.c.
| static void rtsp_teardown | ( | CURL * | curl, |
| const char * | uri | ||
| ) | [static] |
Definition at line 136 of file docs/examples/rtsp.c.