[−][src]Function broker_ntp::request
pub fn request<A: ToSocketAddrs>(addr: A) -> Result<Packet>
Send a blocking request to an ntp server with a hardcoded 5 second timeout.
addr
can be any valid socket address
returns an error if the server cannot be reached or the response is invalid.
TODO: remove hardcoded timeout