ContentsIndex
Barracuda.Utils
MaintainerStephan Friedrichs, Henning Guenther
Description
This module provides a bundle of helper-functions used in several places of the software.
Synopsis
readHost :: String -> Maybe HostAddress
readHost' :: String -> HostAddress
readSockAddr :: PortNumber -> String -> Maybe SockAddr
readSockAddr' :: PortNumber -> String -> SockAddr
showHost :: HostAddress -> String
getConfigDirectory :: IO FilePath
getCertificateDirectory :: IO FilePath
getLastCertificate :: IO FilePath
getLastKey :: IO FilePath
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
:: PortNumberThe default portnumber to use, if none is given in the String.
-> StringThis 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