hsntp-0.1: Libraries to use SNTP protocol and small client/server implementations.

Portabilitynetwork
Stabilityalpha
Maintainerekarttun@cs.helsinki.fi

HSNTP.Util.UDP

Description

Basic UDP connectivity. Currently inefficient - GHC 6.4 should provide the primitives directly. Supports fast ops with CVS GHC.

Synopsis

Documentation

connectUDP :: String -> Int -> IO SocketSource

Connect to an UDP-port.

listenUDP :: Int -> IO SocketSource

Listen UDP

sendBufTo :: Socket -> Ptr a -> Int -> SockAddr -> IO Int

sClose :: Socket -> IO ()

Closes a socket