haskellnet-ssl/src/Network/HaskellNet/SSL.hs
Daniel P. Wright 263bee1392 Add IMAP session logging as an option
Setting the "sslLogToConsole" parameter to True will now spit out the
IMAP session log inline, prefixed with "HaskellNet-SSL".
2014-10-07 13:31:05 +09:00

20 lines
466 B
Haskell

module Network.HaskellNet.SSL
( Settings (..)
, defaultSettingsWithPort
) where
import Network.Socket.Internal (PortNumber)
data Settings = Settings
{ sslPort :: PortNumber
, sslMaxLineLength :: Int
, sslLogToConsole :: Bool
}
defaultSettingsWithPort :: PortNumber -> Settings
defaultSettingsWithPort p = Settings
{ sslPort = p
, sslMaxLineLength = 10000
, sslLogToConsole = False
}