Function ssdp_client::search

source ·
pub async fn search(
    search_target: &SearchTarget,
    timeout: Duration,
    mx: usize,
    ttl: Option<u32>
) -> Result<impl Stream<Item = Result<SearchResponse, Error>>, Error>
Expand description

Search for SSDP control points within a network. Control Points will wait a random amount of time between 0 and mx seconds before responing to avoid flooding the requester with responses. Therefore, the timeout should be at least mx seconds.