-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Send a Wake on LAN Magic Packet -- -- A program and library to a send WoL Magic Packet, to remotely start a -- computer. -- -- This program is useful if you have a computer that you keep at a -- friend's house because he has a fast internet connection. But he keeps -- turning the machine off, saying that it warms up his room and your not -- using it anyway. But now you need a way to turn the machine back on... -- -- Usage: -- --
--   $ wol hostname macaddress [portnumber]
--   
-- -- If the hostname is not statically known, you can try using LAN -- broadcast (255.255.255.255). @package wol @version 0.2 -- | A 'sort of' reusable module for mac addresses. module Network.MacAddress data MacAddress MacAddress :: Word8 -> Word8 -> Word8 -> Word8 -> Word8 -> Word8 -> MacAddress -- | Partial function to "parse" a String to a MacAddress parse :: String -> MacAddress -- | Get all bytes in a mac address bytes :: MacAddress -> [Word8] instance GHC.Show.Show Network.MacAddress.MacAddress -- | Functions for sending a Wake on LAN Magic Packet. module Network.WoL -- | User friendly wrapper around send function. sendWoLMagicPacket :: String -> String -> Int -> IO () -- | Send a magic packet to the specified location. send :: HostAddress -> MacAddress -> PortNumber -> IO () -- | Construct a magic packet based on MacAddress. magicPacket :: MacAddress -> ByteString