Function librist_sys::rist_parse_udp_address[][src]

pub unsafe extern "C" fn rist_parse_udp_address(
    url: *const c_char,
    peer_config: *mut *const rist_udp_config
) -> c_int

@brief Parses udp url for udp config data (multicast interface, stream-id, prefix, etc)

Use this API to parse a generic URL string and turn it into a meaninful udp_config structure

@param url a pointer to a url to be parsed, i.e. udp://myserver.net:1234?miface=eth0&stream-id=1968 @param[out] udp_config a pointer to a the rist_udp_config structure (NULL is allowed). When passing NULL, the library will allocate a new rist_udp_config structure with the latest default values and it expects the application to free it when it is done using it. @return 0 on success or non-zero on error. The value returned is actually the number of parameters that are valid