ntp-control-0.1: Client library for NTP control messaging

Safe HaskellNone

Network.NTP.Control

Synopsis

Documentation

sendTo :: Socket -> SockAddr -> Packet -> IO IntSource

Send an NTP control packet

recvFrom :: Socket -> IO (Packet, SockAddr)Source

Receive an NTP control packet

query :: SockAddr -> Packet -> IO SocketSource

Create a socket and send an NTP control message to a server

response :: SockAddr -> Packet -> Socket -> IO PacketSource

Wait for a response for an issued query

queryHost :: String -> Packet -> IO PacketSource

Convenience wrapper for query that looks up a host name, queries its standard NTP port, and waits for a response