pub fn discover() -> io::Result<Discover> {
    let ip = Ipv4Addr::new(255, 255, 255, 255);
    let pkt = [3, 0];
    let timeout = Some(Duration::from_millis(300));
    let socket = UdpSocket::bind((Ipv4Addr::new(0, 0, 0, 0), 0))?;
    socket.set_broadcast(true)?;
    socket.set_read_timeout(timeout)?;
    socket.set_write_timeout(timeout)?;
    socket.send_to(&pkt, (ip, PORT_360))?;
    socket.send_to(&pkt, (ip, PORT_CLASSIC))?;
    Ok(Discover { socket: socket })
}
/// Discover active Xbox Development Kits on the local network.
Discover active Xbox Development Kits on the local network.
Discover active Xbox Development Kits on the local network .
pub fn discover() -> io::Result<Discover> {
    let ip = Ipv4Addr::new(255, 255, 255, 255);
    let pkt = [3, 0];
    let timeout = Some(Duration::from_millis(300));
    let socket = UdpSocket::bind((Ipv4Addr::new(0, 0, 0, 0), 0))?;
    socket.set_broadcast(true)?;
    socket.set_read_timeout(timeout)?;
    socket.set_write_timeout(timeout)?;
    socket.send_to(&pkt, (ip, PORT_360))?;
    socket.send_to(&pkt, (ip, PORT_CLASSIC))?;
    Ok(Discover { socket: socket })
}
pub fn discover ( ) -> io :: Result < Discover > { let ip = Ipv4Addr :: new ( 255 , 255 , 255 , 255 ) ; let pkt = [ 3 , 0 ] ; let timeout = Some ( Duration :: from_millis ( 300 ) ) ; let socket = UdpSocket :: bind ( ( Ipv4Addr :: new ( 0 , 0 , 0 , 0 ) , 0 ) ) ? ; socket . set_broadcast ( true ) ? ; socket . set_read_timeout ( timeout ) ? ; socket . set_write_timeout ( timeout ) ? ; socket . send_to ( & pkt , ( ip , PORT_360 ) ) ? ; socket . send_to ( & pkt , ( ip , PORT_CLASSIC ) ) ? ; Ok ( Discover { socket : socket } ) }
Discover active Xbox Development Kits on the local network.
Discover active Xbox Development Kits on the local network .