SDP Library

Implementation of Source Description Protocol (SDP) - rfc 2327. More...

Data Structures

struct  sdp_attr_s
 SDP attributes list basic element. More...
struct  sdp_medium_info_s
 Medium imformations. More...
struct  sdp_session_info
 Session informations. More...

Defines

#define SDP_MEDIA_FIELDS
#define SDP_SESSION_FIELDS

Typedefs

typedef struct sdp_attr_s sdp_attr
typedef struct sdp_medium_info_s sdp_medium_info

Functions

sdp_session_infosdp_session_setup (char *descr, int descr_len)
sdp_medium_infosdp_media_setup (char **descr, int descr_len)
int sdp_set_attr (sdp_attr **attr_list, char *a)
void sdp_session_destroy (sdp_session_info *)
void sdp_media_destroy (sdp_medium_info *)
int sdp_parse_m_descr (sdp_medium_info *, char *)
sdp_attrsdp_get_attr (sdp_attr *attr_list, char *name)
sdp_range sdp_parse_range (char *value)

Detailed Description

Implementation of Source Description Protocol (SDP) - rfc 2327.

SDP is intended for describing multimedia sessions for the purposes of session announcement, session invitation, and other forms of multimedia session initiation. (from RFC abstract)


Define Documentation

#define SDP_MEDIA_FIELDS

Value:

"Multimedia Type & Transport Address", \
                "Medium Title", \
                "Connection Info", \
                "Bandwidth Info", \
                "Crypto Key"

Definition at line 66 of file sdp.h.

#define SDP_SESSION_FIELDS

Value:

"Protocol Version", \
                "Session Identifier & Creator", \
                "Session Name", \
                "Session Info", \
                "URI Description", \
                "e-mail Address", \
                "Phone Number", \
                "Connection Info", \
                "Bandwidth Info", \
                "Active Time", \
                "I' so' llu re", \
                "Time Zone", \
                "Crypto Key"

Definition at line 101 of file sdp.h.


Function Documentation

sdp_medium_info* sdp_media_setup ( char **  descr,
int  descr_len 
)

Parse SDP media informations

Parameters:
descr the body to parse
descr_len its length
Returns:
NULL on failure or a newly allocated sdp_medium_info on success

Definition at line 35 of file sdp_media_setup.c.

References sdp_medium_info_s::next.

Referenced by sdp_session_setup().

sdp_range sdp_parse_range ( char *  value  ) 

Parses an SDP range attribute value (currently only NPT format is supported, the code is based on feng's parse_play_time_range)

Definition at line 67 of file sdp_attr.c.

sdp_session_info* sdp_session_setup ( char *  descr,
int  descr_len 
)

Parses the SDP

Parameters:
descr the text to be parsed
descr_len the length of the text
Returns:
NULL on failure or a newly allocated sdp_session_info on success

Definition at line 37 of file sdp_session_setup.c.

References sdp_media_setup().

Here is the call graph for this function:


Generated on Tue Feb 3 03:10:03 2009 for libnemesi by  doxygen 1.5.4