Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data INET6
- data AddrIn6
- data SockAddrIn6 = SockAddrIn6 {
- sin6Port :: Word16
- sin6Flowinfo :: Word32
- sin6Addr :: AddrIn6
- sin6ScopeId :: Word32
- in6addrANY :: AddrIn6
- in6addrLOOPBACK :: AddrIn6
Documentation
To avoid errors with endianess it was decided to keep this type abstract.
Hint: Use the Storable
instance if you really need to access. It exposes it
exactly as found within an IP packet (big endian if you insist
on interpreting it as a number).
Another hint: Use getAddrInfo
for parsing and suppress
nameserver lookups:
> getAddrInfo (Just "::1") Nothing aiNUMERICHOST :: IO [AddrInfo SockAddrIn6 STREAM TCP] [AddrInfo {addrInfoFlags = AddrInfoFlags 4, addrAddress = [0000:0000:0000:0000:0000:0000:0000:0001]:0, addrCanonName = Nothing}]
data SockAddrIn6 Source
SockAddrIn6 | |
|
::
in6addrLOOPBACK :: AddrIn6 Source
::1