[GHC] #1212: Add IPv6 support to network library

GHC trac at galois.com
Sat Mar 10 03:01:27 EST 2007


#1212: Add IPv6 support to network library
-----------------------------------+----------------------------------------
    Reporter:  bos at serpentine.com  |       Owner:          
        Type:  proposal            |      Status:  new     
    Priority:  normal              |   Milestone:  Not GHC 
   Component:  libraries/network   |     Version:  6.6     
    Severity:  normal              |    Keywords:          
  Difficulty:  Moderate (1 day)    |    Testcase:          
Architecture:  Multiple            |          Os:  Multiple
-----------------------------------+----------------------------------------
This proposal adds two standard protocol-independent functions to
 Network.BSD to allow the networking code to work with both IPv6 and IPv4
 addresses and protocols.

 `getAddrInfo` is the equivalent of `getaddrinfo` from RFC 2553.
 `getNameInfo` is the equivalent of `getnameinfo` from RFC 2553.

 These functions rely on a few new types:

 `AddrInfo`
 `AddrInfoFlags`
 `NameInfoFlags`

 Several global values provide mnemonics for query hints and flags.

 Both of these functions are available on all modern operating systems.
 They unify name and service lookup for IPv4 and IPv6.  The code has been
 autoconfiscated so that it will not be compiled if IPv6 support is not
 available.

 I have not touched existing code in any way, save to add and extend the
 smallest possible number of types and functions so that IPv6 addresses can
 be accommodated.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1212>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list