Portability | Linux |
---|---|
Stability | experimental |
Maintainer | ongy |
Safe Haskell | None |
This may change at any time when the main IP module changes. Consider this API unstable!
- data IP
- data IP4
- data IP6
- parseIP :: String -> IP4
- ipFromBS :: ByteString -> IP
- familyToNum :: Num a => AddressFamily -> a
- data AddressFamily
- getAddrFamily :: IP -> AddressFamily
Documentation
ipFromBS :: ByteString -> IPSource
Read an IP from a ByteString. The type is determined by the size of the ByteString.
familyToNum :: Num a => AddressFamily -> aSource
Get the number associated with the family address. This is for interfacing with libraries
getAddrFamily :: IP -> AddressFamilySource
Get the address family for a given ip address