rtsp.c File Reference

Include dependency graph for rtsp.c:


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 Documentation

#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


Function Documentation

void rtsp_close ( rtsp_client_t rtsp  ) 

int rtsp_connect ( rtsp_client_t rtsp,
const char *  psz_mrl,
const char *  psz_user_agent 
)

void rtsp_free_answers ( rtsp_client_t rtsp  ) 

static char* rtsp_get ( rtsp_client_t rtsp  )  [static]

static int rtsp_get_answers ( rtsp_client_t rtsp  )  [static]

char* rtsp_get_mrl ( rtsp_client_t rtsp  ) 

char* rtsp_get_session ( rtsp_client_t rtsp  ) 

static int rtsp_get_status_code ( rtsp_client_t rtsp,
const char *  psz_string 
) [static]

References RTSP_STATUS_SET_PARAMETER, and VLC_UNUSED.

Referenced by rtsp_get_answers().

static int rtsp_put ( rtsp_client_t rtsp,
const char *  psz_string 
) [static]

int rtsp_read_data ( rtsp_client_t rtsp,
uint8_t *  buffer,
unsigned int  size 
)

int rtsp_request_describe ( rtsp_client_t rtsp,
const char *  what 
)

int rtsp_request_options ( rtsp_client_t rtsp,
const char *  what 
)

int rtsp_request_play ( rtsp_client_t rtsp,
const char *  what 
)

int rtsp_request_setparameter ( rtsp_client_t rtsp,
const char *  what 
)

int rtsp_request_setup ( rtsp_client_t rtsp,
const char *  what 
)

int rtsp_request_tearoff ( rtsp_client_t rtsp,
const char *  what 
)

void rtsp_schedule_field ( rtsp_client_t rtsp,
const char *  string 
)

static void rtsp_schedule_standard ( rtsp_client_t rtsp  )  [static]

char* rtsp_search_answers ( rtsp_client_t rtsp,
const char *  tag 
)

int rtsp_send_ok ( rtsp_client_t rtsp  ) 

static int rtsp_send_request ( rtsp_client_t rtsp,
const char *  psz_type,
const char *  psz_what 
) [static]

void rtsp_set_session ( rtsp_client_t rtsp,
const char *  id 
)

void rtsp_unschedule_all ( rtsp_client_t rtsp  ) 

void rtsp_unschedule_field ( rtsp_client_t rtsp,
const char *  string 
)


Variable Documentation

const char rtsp_protocol_version[] = "RTSP/1.0"


Generated on Tue May 25 08:05:08 2010 for VLC by  doxygen 1.5.6