| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Network.Protocol.TLS.GNU
Contents
Synopsis
- data TLS a
- data Session
- data Error = Error Integer
- runTLS :: Session -> TLS a -> IO (Either Error a)
- runClient :: Transport -> TLS a -> IO (Either Error a)
- getSession :: TLS Session
- handshake :: TLS ()
- rehandshake :: TLS ()
- putBytes :: ByteString -> TLS ()
- getBytes :: Integer -> TLS ByteString
- checkPending :: TLS Integer
- data Transport = Transport {
- transportPush :: ByteString -> IO ()
- transportPull :: Integer -> IO ByteString
- handleTransport :: Handle -> Transport
- data Credentials
- setCredentials :: Credentials -> TLS ()
- certificateCredentials :: TLS Credentials
Documentation
Instances
| Monad TLS # | |
| Functor TLS # | |
| Applicative TLS # | |
| MonadIO TLS # | |
Defined in Network.Protocol.TLS.GNU | |
| MonadError TLS # | |
| type ErrorType TLS # | |
Defined in Network.Protocol.TLS.GNU | |
getSession :: TLS Session #
rehandshake :: TLS () #
putBytes :: ByteString -> TLS () #
getBytes :: Integer -> TLS ByteString #
checkPending :: TLS Integer #
Settings
Constructors
| Transport | |
Fields
| |
handleTransport :: Handle -> Transport #
data Credentials #
setCredentials :: Credentials -> TLS () #