sdp_session_info Struct Reference
[SDP Library]

Session informations. More...

#include <sdp.h>

Collaboration diagram for sdp_session_info:

Collaboration graph
[legend]

Data Fields

char * v
char * o
char * s
char * i
char * u
char * e
char * p
char * c
char * b
char * t
char * r
char * z
char * k
sdp_attrattr_list
cc_licensecc
sdp_medium_infomedia_info_queue

Detailed Description

Session informations.

Each field will point to a description string inside the body of the description arrived from server.

On efficency, the same is true for the informations about medium, we can analyse the strategy used for savig the fields. In detail, the body of the SDP description is entirely saved in memory and, then, tokenized line by line. This way, the memory location is divided into strings, each containing an information field. Now it's possible to scan the entire memory location, whose size is known, and to assign each pointer field to the right description string. If an information is not present the corresponding pointer is left to the initialization value: NULL. Using this strategy we have a slight waste of memory space, but this is certainly lower than using pre-allocated strings. Furthermore we avoid many malloc in the code that would make heavier the execution of the program.

See also:
sdp_medium_info

Definition at line 135 of file sdp.h.


Field Documentation

char* sdp_session_info::v

protocol version

Definition at line 136 of file sdp.h.

char* sdp_session_info::o

owner/creator and session identifier

Definition at line 137 of file sdp.h.

char* sdp_session_info::s

session name

Definition at line 138 of file sdp.h.

char* sdp_session_info::i

session information

Definition at line 139 of file sdp.h.

char* sdp_session_info::u

URI of description

Definition at line 140 of file sdp.h.

char* sdp_session_info::e

email address

Definition at line 141 of file sdp.h.

char* sdp_session_info::p

phone number

Definition at line 142 of file sdp.h.

char* sdp_session_info::c

onnection information - not required if included in all media

Definition at line 143 of file sdp.h.

char* sdp_session_info::b

bandwidth information

Definition at line 144 of file sdp.h.

char* sdp_session_info::t

time the session is active

Definition at line 146 of file sdp.h.

char* sdp_session_info::r

zero or more repeat times

Definition at line 147 of file sdp.h.

char* sdp_session_info::z

time zone adjustments

Definition at line 149 of file sdp.h.

char* sdp_session_info::k

encryption key

Definition at line 150 of file sdp.h.

sdp_attr* sdp_session_info::attr_list

zero or more session attribute lines

Definition at line 152 of file sdp.h.

Referenced by rtsp_info_print().

cc_license* sdp_session_info::cc

Creative Commons License struct

Definition at line 154 of file sdp.h.

sdp_medium_info* sdp_session_info::media_info_queue

Media information queue

Definition at line 156 of file sdp.h.


The documentation for this struct was generated from the following file:
Generated on Tue Feb 3 03:10:03 2009 for libnemesi by  doxygen 1.5.4