|
| Barracuda.Utils | | Maintainer | Stephan Friedrichs, Henning Guenther |
|
|
|
| Description |
| This module provides a bundle of helper-functions used in several
places of the software.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| readHost :: String -> Maybe HostAddress |
| Reads a hostname to a String, if possible.
|
|
| readHost' :: String -> HostAddress |
| Does the same as readHost, only that it throws an error on failure.
|
|
| readSockAddr |
| :: PortNumber | The default portnumber to use, if none is given in the String.
| | -> String | This is where the SockAddr is parsed from.
| | -> Maybe SockAddr | | | Parses a String into a SockAddr.
|
|
|
| readSockAddr' :: PortNumber -> String -> SockAddr |
| The same as readSockAddr, only that an error is thrown on failure.
|
|
| showHost :: HostAddress -> String |
| Converts a HostAddress to a String.
|
|
| getConfigDirectory :: IO FilePath |
| Returns the directory where the configuration is saved.
|
|
| getCertificateDirectory :: IO FilePath |
| The root directrory of the certificate cache.
|
|
| getLastCertificate :: IO FilePath |
| A file saving the most recently used certificate.
|
|
| getLastKey :: IO FilePath |
| A file saving the most recently used private key.
|
|
| Produced by Haddock version 0.8 |