ANN: network-alt 0.3 and hsgnutls 0.2.1

Ashley Yakeley ashley at semantic.org
Sat Nov 5 21:29:17 EST 2005


In article <20051105110743.GA22208 at yui.aoinet>,
 Einar Karttunen <ekarttun at cs.helsinki.fi> wrote:

> network-alt 0.3 featuring:
> * New improved build system
> * Recvfrom and sendto fixes
> * Windows support
> 
> Network-Alt is an alternative networking library for Haskell
> supporting a nicer API, better performance and IPv6 support.
> 
> http://www.cs.helsinki.fi/u/ekarttun/network-alt

It's quite low-level, isn't it? I wonder if it would be worth doing 
something along these lines:

newtype IPv4Address = IPv4Address Word32

newtype IPv6Address = IPv6Address Word128

type PortNumber = Word16

data InternetService addr  = MkInternetService {
    localAddress :: addr,
    sendUDP :: UDPOptions -> addr -> PortNumber -> [Word8] -> IO (),
    -- etc.
}

getIPv4Services :: IO [InternetService IPv4Address]
getIPv6Services :: IO [InternetService IPv6Address]

-- 
Ashley Yakeley, Seattle WA



More information about the Libraries mailing list