Adding a Connection Field to the SDP Session Structure
int sdp_add_connection(sdp_conn_t **conn, const char *nettype, const char *addrtype, const char *address, uint8_t ttl, int addrcount);
The sdp_add_connection
()
function adds the CONNECTION
(c=
) SDP field to either the session structure
(sdp_session_t
) or the media structure (sdp_media_t
)
using the nettype
, addrtype
, address
, ttl
, and addrcount
parameters.
For IPv4 or IPv6 unicast addresses, set the values of the ttl
and addrcount
parameters to zero. For multicast addresses, set the
value of the ttl
parameter between zero and 255. A
multicast address cannot have an addrcount
parameter with
a value of zero.
For more information, see the
sdp_add_connection
(3COMMPUTIL) man page.