maccatcher-2.1.5: Obtain the host MAC address on *NIX and Windows.

Safe HaskellNone

System.Info.MAC

Description

Obtain a MAC address for the host system, on *NIX and Windows.

Synopsis

Documentation

mac :: IO (Maybe MAC)

Fetch MAC address, using a cached value if it is available.

macs :: IO [MAC]

Fetch MAC addresses, using a cached value if it is available.

nic :: IO (Maybe (String, MAC))

Fetch a name-MAC pair, using a cached value if it is available.

nics :: IO [(String, MAC)]

Fetch name-MAC pairs, using a cached value if it is available.

refresh :: IO [(String, MAC)]

Explicitly re-run the MAC reading operation.