Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Network.Info
Documentation
getNetworkInterfaces :: IO [NetworkInterface] Source #
Gets the address information for each of the network interfaces on the local computer.
data NetworkInterface Source #
Describes the basic configuration of a network interface. This definition is currently limited to just one address per family.
Constructors
NetworkInterface | |
Instances
Show NetworkInterface Source # | |
Defined in Network.Info | |
Storable NetworkInterface Source # | |
Defined in Network.Info Methods sizeOf :: NetworkInterface -> Int Source # alignment :: NetworkInterface -> Int Source # peekElemOff :: Ptr NetworkInterface -> Int -> IO NetworkInterface Source # pokeElemOff :: Ptr NetworkInterface -> Int -> NetworkInterface -> IO () Source # peekByteOff :: Ptr b -> Int -> IO NetworkInterface Source # pokeByteOff :: Ptr b -> Int -> NetworkInterface -> IO () Source # peek :: Ptr NetworkInterface -> IO NetworkInterface Source # poke :: Ptr NetworkInterface -> NetworkInterface -> IO () Source # |
Represents an IPv4 address (e.g. 172.23.21.1
, 127.0.0.1
)
Instances
Bounded IPv4 Source # | |
Eq IPv4 Source # | |
Ord IPv4 Source # | |
Show IPv4 Source # | |
Storable IPv4 Source # | |
Defined in Network.Info Methods sizeOf :: IPv4 -> Int Source # alignment :: IPv4 -> Int Source # peekElemOff :: Ptr IPv4 -> Int -> IO IPv4 Source # pokeElemOff :: Ptr IPv4 -> Int -> IPv4 -> IO () Source # peekByteOff :: Ptr b -> Int -> IO IPv4 Source # pokeByteOff :: Ptr b -> Int -> IPv4 -> IO () Source # |
Represents an IPv6 address (e.g. 2001:db8:85a3::8a2e:370:7334
, ::1
)
Instances
Bounded IPv6 Source # | |
Eq IPv6 Source # | |
Ord IPv6 Source # | |
Show IPv6 Source # | Not yet capable of collapsing groups of zeros, will still generate valid addresses however. |
Storable IPv6 Source # | |
Defined in Network.Info Methods sizeOf :: IPv6 -> Int Source # alignment :: IPv6 -> Int Source # peekElemOff :: Ptr IPv6 -> Int -> IO IPv6 Source # pokeElemOff :: Ptr IPv6 -> Int -> IPv6 -> IO () Source # peekByteOff :: Ptr b -> Int -> IO IPv6 Source # pokeByteOff :: Ptr b -> Int -> IPv6 -> IO () Source # |
Represents a MAC address (e.g. 01:23:45:67:89:ab
)
Instances
Bounded MAC Source # | |
Eq MAC Source # | |
Ord MAC Source # | |
Show MAC Source # | |
Storable MAC Source # | |