rename more Bytes to B.ByteString.

This commit is contained in:
Vincent Hanquez 2012-02-11 10:50:41 +00:00
parent e0610c7f66
commit 5c4a0d345b
2 changed files with 5 additions and 5 deletions

View file

@ -64,8 +64,8 @@ import Prelude hiding (catch)
data TLSLogging = TLSLogging
{ loggingPacketSent :: String -> IO ()
, loggingPacketRecv :: String -> IO ()
, loggingIOSent :: Bytes -> IO ()
, loggingIORecv :: Header -> Bytes -> IO ()
, loggingIOSent :: B.ByteString -> IO ()
, loggingIORecv :: Header -> B.ByteString -> IO ()
}
data TLSParams = TLSParams

View file

@ -178,8 +178,8 @@ clientWith :: (MonadIO m, CryptoRandomGen g)
-> g -- ^ Random number generator associated
-> c -- ^ An abstract connection type
-> IO () -- ^ A method for the connection buffer to be flushed
-> (Bytes -> IO ()) -- ^ A method for sending bytes through the connection
-> (Int -> IO Bytes) -- ^ A method for receiving bytes through the connection
-> (B.ByteString -> IO ()) -- ^ A method for sending bytes through the connection
-> (Int -> IO B.ByteString) -- ^ A method for receiving bytes through the connection
-> m (TLSCtx c)
clientWith params rng connection flushF sendF recvF =
liftIO $ newCtxWith connection flushF sendF recvF params st
@ -196,7 +196,7 @@ client params rng handle = liftIO $ newCtx handle params st
where st = (newTLSState rng) { stClientContext = True }
-- | Create a new Server context with a configuration, a RNG, a generic connection and the connection operation.
serverWith :: (MonadIO m, CryptoRandomGen g) => TLSParams -> g -> c -> IO () -> (Bytes -> IO ()) -> (Int -> IO Bytes) -> m (TLSCtx c)
serverWith :: (MonadIO m, CryptoRandomGen g) => TLSParams -> g -> c -> IO () -> (B.ByteString -> IO ()) -> (Int -> IO B.ByteString) -> m (TLSCtx c)
serverWith params rng connection flushF sendF recvF =
liftIO $ newCtxWith connection flushF sendF recvF params st
where st = (newTLSState rng) { stClientContext = False }