Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
Instances
Storable NetworkInterface Source # | |
Defined in Network.Info sizeOf :: NetworkInterface -> Int # alignment :: NetworkInterface -> Int # peekElemOff :: Ptr NetworkInterface -> Int -> IO NetworkInterface # pokeElemOff :: Ptr NetworkInterface -> Int -> NetworkInterface -> IO () # peekByteOff :: Ptr b -> Int -> IO NetworkInterface # pokeByteOff :: Ptr b -> Int -> NetworkInterface -> IO () # peek :: Ptr NetworkInterface -> IO NetworkInterface # poke :: Ptr NetworkInterface -> NetworkInterface -> IO () # | |
Show NetworkInterface Source # | |
Defined in Network.Info showsPrec :: Int -> NetworkInterface -> ShowS # show :: NetworkInterface -> String # showList :: [NetworkInterface] -> ShowS # |
Represents an IPv4 address (e.g. 172.23.21.1
, 127.0.0.1
)
Represents an IPv6 address (e.g. 2001:db8:85a3::8a2e:370:7334
, ::1
)