HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
sdp_adj_time_list_t *sdp_get_tzoneadjust(sdp_t *sdp);
sdp_encr_key_t *sdp_get_encrkey(sdp_t *sdp);
sdp_attribute_list_t *sdp_get_attribute(sdp_t *sdp);
int sdp_add_connection(sdp_t *sdp, char *nettype, char *addrtype,
char *addr, char *ttl, char *no_of_addr);
int sdp_add_bandwidth(sdp_t *sdp, char *bwtype, char *bandwidth);
int sdp_add_attribute(sdp_t *sdp, char *att_name, char *att_value);
int sdp_add_time(sdp_t *sdp, char *start, char *stop, char *interval,
char *a ct_dur, char *offset);
int sdp_add_tzoneadjust(sdp_t *sdp, char *adjtime, char *offset);
int sdp_add_encrkey(sdp_t *sdp, char *key_method, char *key_data);
“The sdp_get and sdp_add APIs” (page 71) lists the sdp_get* and sdp_add* APIs.
Table 2-6 The sdp_get and sdp_add APIs
DescriptionAPI
Gets the SDP protocol version.
sdp_get_version()
Gets information about the SDP session owner or the creator.
sdp_get_owner()
Gets the SDP session name.
sdp_get_name()
Gets the SDP session information.
sdp_get_info()
Gets Universal Resource Identifier (URI) information, if any.
sdp_get_uri()
Gets the e-mail address or addresses of the person
responsible for this conference. It returns the starting address
of a list of e-mail addresses.
sdp_get_email()
Gets the telephone number or numbers of the person
responsible for this conference. It returns the starting address
of a list of telephone numbers.
sdp_get_phone()
Adds SDP protocol version to the SDP structure. vers points
to the protocol version to be set.
sdp_add_version()
Adds the owner or creator information in the SDP structure.
The arguments username, sesid, ver, nettype,
addrtype, and addr point to the user’s login name on the
originating host, session ID, version number of the
announcement, network type (IN), address type (IP4 or IP6),
and address of the machine from which the session was
created, respectively.
sdp_add_owner()
Adds the session name. The sname argument points to the
session name to be set.
sdp_add_name()
Adds the SDP session information. info points to the
session information to be set.
sdp_add_info()
SDP Library 71