
Data Structures | |
| struct | rtsp_s |
Defines | |
| #define | BUF_SIZE 4096 |
| #define | HEADER_SIZE 1024 |
| #define | MAX_FIELDS 256 |
| #define | RTSP_CONNECTED 1 |
| #define | RTSP_INIT 2 |
| #define | RTSP_READY 4 |
| #define | RTSP_PLAYING 8 |
| #define | RTSP_RECORDING 16 |
| #define | RTSP_OPTIONS 0x001 |
| #define | RTSP_DESCRIBE 0x002 |
| #define | RTSP_ANNOUNCE 0x004 |
| #define | RTSP_SETUP 0x008 |
| #define | RTSP_GET_PARAMETER 0x010 |
| #define | RTSP_SET_PARAMETER 0x020 |
| #define | RTSP_TEARDOWN 0x040 |
| #define | RTSP_PLAY 0x080 |
| #define | RTSP_RECORD 0x100 |
Functions | |
| static char * | rtsp_get (rtsp_client_t *rtsp) |
| static int | rtsp_put (rtsp_client_t *rtsp, const char *psz_string) |
| static int | rtsp_get_status_code (rtsp_client_t *rtsp, const char *psz_string) |
| static int | rtsp_send_request (rtsp_client_t *rtsp, const char *psz_type, const char *psz_what) |
| static void | rtsp_schedule_standard (rtsp_client_t *rtsp) |
| static int | rtsp_get_answers (rtsp_client_t *rtsp) |
| int | rtsp_send_ok (rtsp_client_t *rtsp) |
| int | rtsp_request_options (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_request_describe (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_request_setup (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_request_setparameter (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_request_play (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_request_tearoff (rtsp_client_t *rtsp, const char *what) |
| int | rtsp_read_data (rtsp_client_t *rtsp, uint8_t *buffer, unsigned int size) |
| int | rtsp_connect (rtsp_client_t *rtsp, const char *psz_mrl, const char *psz_user_agent) |
| void | rtsp_close (rtsp_client_t *rtsp) |
| char * | rtsp_search_answers (rtsp_client_t *rtsp, const char *tag) |
| void | rtsp_set_session (rtsp_client_t *rtsp, const char *id) |
| char * | rtsp_get_session (rtsp_client_t *rtsp) |
| char * | rtsp_get_mrl (rtsp_client_t *rtsp) |
| void | rtsp_schedule_field (rtsp_client_t *rtsp, const char *string) |
| void | rtsp_unschedule_field (rtsp_client_t *rtsp, const char *string) |
| void | rtsp_unschedule_all (rtsp_client_t *rtsp) |
| void | rtsp_free_answers (rtsp_client_t *rtsp) |
Variables | |
| const char | rtsp_protocol_version [] = "RTSP/1.0" |
| #define BUF_SIZE 4096 |
Referenced by rtsp_get().
| #define HEADER_SIZE 1024 |
| #define MAX_FIELDS 256 |
Referenced by rtsp_connect(), and rtsp_get_answers().
| #define RTSP_ANNOUNCE 0x004 |
| #define RTSP_CONNECTED 1 |
Referenced by rtsp_connect().
| #define RTSP_DESCRIBE 0x002 |
| #define RTSP_GET_PARAMETER 0x010 |
| #define RTSP_INIT 2 |
| #define RTSP_OPTIONS 0x001 |
| #define RTSP_PLAY 0x080 |
| #define RTSP_PLAYING 8 |
| #define RTSP_READY 4 |
| #define RTSP_RECORD 0x100 |
| #define RTSP_RECORDING 16 |
| #define RTSP_SET_PARAMETER 0x020 |
| #define RTSP_SETUP 0x008 |
| #define RTSP_TEARDOWN 0x040 |
| void rtsp_close | ( | rtsp_client_t * | rtsp | ) |
| int rtsp_connect | ( | rtsp_client_t * | rtsp, | |
| const char * | psz_mrl, | |||
| const char * | psz_user_agent | |||
| ) |
References rtsp_s::answers, rtsp_s::cseq, rtsp_s::host, i, MAX_FIELDS, rtsp_s::mrl, rtsp_client_t::p_private, rtsp_client_t::p_userdata, rtsp_s::path, rtsp_client_t::pf_connect, rtsp_s::port, rtsp_close(), RTSP_CONNECTED, rtsp_request_options(), rtsp_schedule_field(), rtsp_s::s, rtsp_s::scheduled, rtsp_s::server, rtsp_s::server_caps, rtsp_s::server_state, rtsp_s::session, strdup(), and rtsp_s::user_agent.
| void rtsp_free_answers | ( | rtsp_client_t * | rtsp | ) |
References rtsp_s::answers, and rtsp_client_t::p_private.
Referenced by rtsp_close(), and rtsp_get_answers().
| static char* rtsp_get | ( | rtsp_client_t * | rtsp | ) | [static] |
References BUF_SIZE, rtsp_client_t::p_userdata, rtsp_client_t::pf_read_line, and strdup().
Referenced by rtsp_get_answers(), and rtsp_read_data().
| static int rtsp_get_answers | ( | rtsp_client_t * | rtsp | ) | [static] |
References rtsp_s::answers, rtsp_s::cseq, MAX_FIELDS, rtsp_client_t::p_private, rtsp_free_answers(), rtsp_get(), rtsp_get_status_code(), rtsp_schedule_standard(), rtsp_s::server, rtsp_s::session, strdup(), and strncasecmp().
Referenced by rtsp_request_describe(), rtsp_request_options(), rtsp_request_play(), rtsp_request_setparameter(), rtsp_request_setup(), and rtsp_request_tearoff().
| char* rtsp_get_mrl | ( | rtsp_client_t * | rtsp | ) |
| char* rtsp_get_session | ( | rtsp_client_t * | rtsp | ) |
References rtsp_client_t::p_private, and rtsp_s::session.
| static int rtsp_get_status_code | ( | rtsp_client_t * | rtsp, | |
| const char * | psz_string | |||
| ) | [static] |
| static int rtsp_put | ( | rtsp_client_t * | rtsp, | |
| const char * | psz_string | |||
| ) | [static] |
References rtsp_client_t::p_userdata, and rtsp_client_t::pf_write.
Referenced by rtsp_read_data(), rtsp_send_ok(), and rtsp_send_request().
| int rtsp_read_data | ( | rtsp_client_t * | rtsp, | |
| uint8_t * | buffer, | |||
| unsigned int | size | |||
| ) |
References i, rtsp_client_t::p_userdata, rtsp_client_t::pf_read, rtsp_get(), rtsp_put(), and strncasecmp().
Referenced by real_get_rdt_chunk(), real_get_rdt_chunk_header(), and real_setup_and_get_header().
| int rtsp_request_describe | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
References rtsp_s::host, rtsp_client_t::p_private, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), rtsp_send_request(), and strdup().
Referenced by real_setup_and_get_header().
| int rtsp_request_options | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
References rtsp_s::host, rtsp_client_t::p_private, rtsp_s::port, rtsp_get_answers(), rtsp_send_request(), and strdup().
Referenced by rtsp_connect().
| int rtsp_request_play | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
References rtsp_s::host, rtsp_client_t::p_private, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), rtsp_send_request(), and strdup().
Referenced by real_setup_and_get_header().
| int rtsp_request_setparameter | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
References rtsp_s::host, rtsp_client_t::p_private, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), rtsp_send_request(), and strdup().
Referenced by real_setup_and_get_header().
| int rtsp_request_setup | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
| int rtsp_request_tearoff | ( | rtsp_client_t * | rtsp, | |
| const char * | what | |||
| ) |
References rtsp_get_answers(), and rtsp_send_request().
| void rtsp_schedule_field | ( | rtsp_client_t * | rtsp, | |
| const char * | string | |||
| ) |
References i, rtsp_client_t::p_private, rtsp_s::scheduled, and strdup().
Referenced by real_setup_and_get_header(), rtsp_connect(), and rtsp_schedule_standard().
| static void rtsp_schedule_standard | ( | rtsp_client_t * | rtsp | ) | [static] |
References rtsp_s::cseq, rtsp_client_t::p_private, rtsp_schedule_field(), and rtsp_s::session.
Referenced by rtsp_get_answers().
| char* rtsp_search_answers | ( | rtsp_client_t * | rtsp, | |
| const char * | tag | |||
| ) |
References rtsp_s::answers, rtsp_client_t::p_private, and strncasecmp().
Referenced by real_setup_and_get_header().
| int rtsp_send_ok | ( | rtsp_client_t * | rtsp | ) |
References rtsp_s::cseq, rtsp_client_t::p_private, and rtsp_put().
Referenced by real_setup_and_get_header().
| static int rtsp_send_request | ( | rtsp_client_t * | rtsp, | |
| const char * | psz_type, | |||
| const char * | psz_what | |||
| ) | [static] |
References rtsp_client_t::p_private, rtsp_put(), rtsp_unschedule_all(), and rtsp_s::scheduled.
Referenced by rtsp_request_describe(), rtsp_request_options(), rtsp_request_play(), rtsp_request_setparameter(), rtsp_request_setup(), and rtsp_request_tearoff().
| void rtsp_set_session | ( | rtsp_client_t * | rtsp, | |
| const char * | id | |||
| ) |
References rtsp_client_t::p_private, rtsp_s::session, and strdup().
| void rtsp_unschedule_all | ( | rtsp_client_t * | rtsp | ) |
References rtsp_client_t::p_private, and rtsp_s::scheduled.
Referenced by rtsp_close(), and rtsp_send_request().
| void rtsp_unschedule_field | ( | rtsp_client_t * | rtsp, | |
| const char * | string | |||
| ) |
References rtsp_client_t::p_private, and rtsp_s::scheduled.
| const char rtsp_protocol_version[] = "RTSP/1.0" |
1.5.6