Function msp::get_lan_server_status

source ·
pub fn get_lan_server_status(
    socket_conf: &SocketConf
) -> Result<Vec<LanServer>, MspErr>
Expand description

Get the host information of other open servers in the current LAN.

Currently, it only prints the host information cyclically, and does not return LanServer information.

TODO

Get host information for a period of time by passing in duration control.

Example

use msp::{get_lan_server_status, MspErr, SocketConf};

fn main() -> Result<(), MspErr> {
   let info =  get_lan_server_status(&SocketConf::default())?;

    Ok(())
}
Examples found in repository?
examples/lan_server.rs (line 4)
3
4
5
6
7
fn main() -> Result<(), MspErr> {
    get_lan_server_status(&SocketConf::default())?;

    Ok(())
}