Skip to main content

discover

Function discover 

Source
pub fn discover(listen_for: Duration) -> Result<Vec<Server>, ClientError>
Expand description

Listens for servers for as long as it is given.

Always waits the whole time rather than returning on the first answer: in a marina there may be several, and a client that grabbed whichever replied first would attach to the neighbour’s boat.

§Errors

If the mDNS responder cannot be started or the browse cannot begin.