Maintainer | John Galt <jgalt@centromere.net> |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- type InboundNoisePipe = Pipe ByteString ScrubbedBytes
- type OutboundNoisePipe = Pipe ScrubbedBytes ByteString
- mkNoisePipes :: (MonadIO m, Cipher c, DH d, Hash h) => NoiseState c d h -> IO (InboundNoisePipe m (Either SomeException ()), OutboundNoisePipe m (Either SomeException ()))
Types
type InboundNoisePipe = Pipe ByteString ScrubbedBytes Source #
Pipe used for inbound Noise messages.
type OutboundNoisePipe = Pipe ScrubbedBytes ByteString Source #
Pipe used for outbound Noise messages.
Pipes
mkNoisePipes :: (MonadIO m, Cipher c, DH d, Hash h) => NoiseState c d h -> IO (InboundNoisePipe m (Either SomeException ()), OutboundNoisePipe m (Either SomeException ())) Source #
Creates a pair of Pipes, the first used for inbound messages and the second used for outbound messages.