Network.GrowlNotify
Description
A network notification utility to work with Growl http://growl.info/.
An application must register itself by sending a registrationPacket. Then, to send a notification, send a notificationPacket. Any packet must have an md5sum tacked on to the end before being sent.
- registrationPacket :: String -> [String] -> ByteString
- notificationPacket :: Bool -> String -> String -> String -> String -> ByteString
- addMD5Sum :: String -> ByteString -> ByteString
- sendMessage :: String -> ByteString -> IO ()
Documentation
Arguments
:: String | The name of this application |
-> [String] | A list of notifications |
-> ByteString | The packet |
register this application and its notification with growl | any notifications will be on by default
Arguments
:: Bool | True iff the notification should be sticky |
-> String | The name of this application |
-> String | The notification name |
-> String | The title of this notification |
-> String | The notification text |
-> ByteString | The packet |
Create a notification packet
Arguments
:: String | The password |
-> ByteString | The packet (from notificationPacket or registrationPacket) |
-> ByteString | The message with appended md5sum, ready for sendMessage |
Tack on the md5sum to the end of the message, with a (possibly empty) password
Arguments
:: String | The server (an IP address or hostname) |
-> ByteString | The message (with md5sum) to send |
-> IO () |
Send the packet