pub fn new() -> SntpRequest {
        let sntp = SntpRequest {
            socket: UdpSocket::bind("0.0.0.0:0").unwrap(),
            kiss_of_death: Cell::new(false),
        };
        sntp.set_timeout(Duration::from_secs(5)).unwrap();
        sntp
    }
/// Creates a new SNTP request object.
Creates a new SNTP request object.
Creates a new SNTP request object .
pub fn new() -> SntpRequest {
        let sntp = SntpRequest {
            socket: UdpSocket::bind("0.0.0.0:0").unwrap(),
            kiss_of_death: Cell::new(false),
        };
        sntp.set_timeout(Duration::from_secs(5)).unwrap();
        sntp
    }
pub fn new ( ) -> SntpRequest { let sntp = SntpRequest { socket : UdpSocket :: bind ( " " ) . unwrap ( ) , kiss_of_death : Cell :: new ( false ) , } ; sntp . set_timeout ( Duration :: from_secs ( 5 ) ) . unwrap ( ) ; sntp }
Creates a new SNTP request object.
Creates a new SNTP request object .