⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdp.h

📁 libosip-0.9.7源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/** * Get the addr ('o' field) of a SDP packet. * @param sdp The element to work on. */  char *sdp_o_addr_get (sdp_t * sdp);/** * Set the session name in a SDP packet. * @param sdp The element to work on. * @param value The token value. */  int sdp_s_name_set (sdp_t * sdp, char *value);/** * Get the session name ('s' field) of a SDP packet. * @param sdp The element to work on. */  char *sdp_s_name_get (sdp_t * sdp);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param value The token value. */  int sdp_i_info_set (sdp_t * sdp, int pos_media, char *value);/** * Get the session info ('i' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. */  char *sdp_i_info_get (sdp_t * sdp, int pos_media);/** * Set the session info in a SDP packet. * @param sdp The element to work on. * @param value The token value. */  int sdp_u_uri_set (sdp_t * sdp, char *value);/** * Get the uri ('u' field) of a SDP packet. * @param sdp The element to work on. */  char *sdp_u_uri_get (sdp_t * sdp);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param value The token value. */  int sdp_e_email_add (sdp_t * sdp, char *value);/** * Get one of the email ('e' field) of a SDP packet. * @param sdp The element to work on. * @param pos the index of the email line. */  char *sdp_e_email_get (sdp_t * sdp, int pos);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param value The token value. */  int sdp_p_phone_add (sdp_t * sdp, char *value);/** * Get one of the phone ('p' field) of a SDP packet. * @param sdp The element to work on. * @param pos the index of the phone line. */  char *sdp_p_phone_get (sdp_t * sdp, int pos);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param nettype The token value. * @param addrtype The token value. * @param addr The token value. * @param addr_multicast_ttl The token value. * @param addr_multicast_int The token value. */  int sdp_c_connection_add (sdp_t * sdp, int pos_media,			    char *nettype, char *addrtype,			    char *addr, char *addr_multicast_ttl,			    char *addr_multicast_int);#ifndef DOXYGEN/* this method should be internal only... */  sdp_connection_t *sdp_connection_get (sdp_t * sdp, int pos_media, int pos);#endif/** * Get the network type ('c' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the connection element list.. */  char *sdp_c_nettype_get (sdp_t * sdp, int pos_media, int pos);/** * Get the address type ('c' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the connection element list.. */  char *sdp_c_addrtype_get (sdp_t * sdp, int pos_media, int pos);/** * Get the address ('c' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the connection element list.. */  char *sdp_c_addr_get (sdp_t * sdp, int pos_media, int pos);/** * Get the multicast ttl ('c' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the connection element list.. */  char *sdp_c_addr_multicast_ttl_get (sdp_t * sdp, int pos_media, int pos);/** * Get the multicast int info ('c' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the connection element list.. */  char *sdp_c_addr_multicast_int_get (sdp_t * sdp, int pos_media, int pos);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param bwtype The token value. * @param bandwidth The token value. */  int sdp_b_bandwidth_add (sdp_t * sdp, int pos_media,			   char *bwtype, char *bandwidth);/** * Get the bandwidth ('b' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the bandwidth element list.. */  sdp_bandwidth_t *sdp_bandwidth_get (sdp_t * sdp, int pos_media, int pos);/** * Get the bandwidth type ('b' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the bandwidth element list.. */  char *sdp_b_bwtype_get (sdp_t * sdp, int pos_media, int pos);/** * Get the bandwidth value ('b' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The index in the bandwidth element list.. */  char *sdp_b_bandwidth_get (sdp_t * sdp, int pos_media, int pos);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param start The token value. * @param stop The token value. */  int sdp_t_time_descr_add (sdp_t * sdp, char *start, char *stop);/** * Get the start time value ('t' field) of a SDP packet. * @param sdp The element to work on. * @param pos_td The time description line number. */  char *sdp_t_start_time_get (sdp_t * sdp, int pos_td);/** * Get the stop time value ('t' field) of a SDP packet. * @param sdp The element to work on. * @param pos_td The time description line number. */  char *sdp_t_stop_time_get (sdp_t * sdp, int pos_td);/** * Set the repeat information ('r' field) in a SDP packet. * @param sdp The element to work on. * @param pos_time_descr index of t field. * @param value The token value. */  int sdp_r_repeat_add (sdp_t * sdp, int pos_time_descr, char *value);/** * Get the repeat information ('r' field) in a SDP packet. * @param sdp The element to work on. * @param pos_time_descr index of t field. * @param pos_repeat index of element in the 'r' field. */  char *sdp_r_repeat_get (sdp_t * sdp, int pos_time_descr, int pos_repeat);/** * Set the adjustments ('z' field) of a SDP packet. * @param sdp The element to work on. * @param value The token value. */  int sdp_z_adjustments_set (sdp_t * sdp, char *value);/** * Get the adjustments ('z' field) of a SDP packet. * @param sdp The element to work on. */  char *sdp_z_adjustments_get (sdp_t * sdp);/** * Add a key in a SDP packet. * @param sdp The element to work on. * @param pos_media index of m field. * @param keytype The token value. * @param keydata The token value. */  int sdp_k_key_set (sdp_t * sdp, int pos_media, char *keytype,		     char *keydata);/** * Get the key type ('k' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. */  char *sdp_k_keytype_get (sdp_t * sdp, int pos_media);/** * Get the key value ('k' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. */  char *sdp_k_keydata_get (sdp_t * sdp, int pos_media);/** * Set the version in a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. * @param att_field The token value. * @param att_value The token value. */  int sdp_a_attribute_add (sdp_t * sdp, int pos_media, char *att_field,			   char *att_value);/** * Get one of the attribute ('a' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The attribute line number. */  sdp_attribute_t *sdp_attribute_get (sdp_t * sdp, int pos_media, int pos);/** * Get the attribute name ('a' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The attribute line number. */  char *sdp_a_att_field_get (sdp_t * sdp, int pos_media, int pos);/** * Get the attribute value ('a' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The media line number. * @param pos The attribute line number. */  char *sdp_a_att_value_get (sdp_t * sdp, int pos_media, int pos);/** * Check if there is more media lines a SDP packet. * @param sdp The element to work on. * @param pos The attribute line number. */  int sdp_endof_media (sdp_t * sdp, int pos);/** * Add a media line in a SDP packet. * @param sdp The element to work on. * @param media The token value. * @param port The token value. * @param number_of_port The token value. * @param proto The token value. */  int sdp_m_media_add (sdp_t * sdp, char *media,		       char *port, char *number_of_port, char *proto);/** * Get the media type ('m' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. */  char *sdp_m_media_get (sdp_t * sdp, int pos_media);/** * Get the port number ('m' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. */  char *sdp_m_port_get (sdp_t * sdp, int pos_media);/** * Get the number of port ('m' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. */  char *sdp_m_number_of_port_get (sdp_t * sdp, int pos_media);/** * Get the protocol ('m' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. */  char *sdp_m_proto_get (sdp_t * sdp, int pos_media);/** * Set the payload in a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. * @param payload The token value. */  int sdp_m_payload_add (sdp_t * sdp, int pos_media, char *payload);/** * Get one of the payload number ('m' field) of a SDP packet. * @param sdp The element to work on. * @param pos_media The line number. * @param pos The i th payload element. */  char *sdp_m_payload_get (sdp_t * sdp, int pos_media, int pos);/** @} */#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -