Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
Internal module for handling low-level packet parsing and building, including uninterpreted packets and stream transformations.
Synopsis
- data Uninterpreted = Uninterpreted {
- pkcode :: !Word8
- pkdata :: !ByteString
- data EOF = EOF
- makepacketstreami :: TVar Int -> InputStream ByteString -> IO (InputStream Uninterpreted)
- makepacketstreamo :: TVar Int -> OutputStream ByteString -> IO (OutputStream Uninterpreted)
- makedecrypting :: TVar (ByteString -> IO ByteString) -> InputStream ByteString -> IO (InputStream ByteString)
- makeencrypting :: TVar (ByteString -> IO ByteString) -> OutputStream ByteString -> IO (OutputStream ByteString)
Types
data Uninterpreted Source #
uninterpreted packet
Uninterpreted | |
|
Instances
end of input
Instances
Data EOF Source # | |
Defined in M.IO.Internal.Datagram gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EOF -> c EOF # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EOF # dataTypeOf :: EOF -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EOF) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EOF) # gmapT :: (forall b. Data b => b -> b) -> EOF -> EOF # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EOF -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EOF -> r # gmapQ :: (forall d. Data d => d -> u) -> EOF -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> EOF -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> EOF -> m EOF # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EOF -> m EOF # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EOF -> m EOF # | |
Exception EOF Source # | |
Defined in M.IO.Internal.Datagram toException :: EOF -> SomeException # fromException :: SomeException -> Maybe EOF # displayException :: EOF -> String # | |
Generic EOF Source # | |
Read EOF Source # | |
Show EOF Source # | |
Lift EOF Source # | |
type Rep EOF Source # | |
Streams
:: TVar Int | compression threshold reference (negative = off, non-negative = on with threshold) |
-> InputStream ByteString | input stream |
-> IO (InputStream Uninterpreted) | stream of uninterpreted packets |
make a stream of uninterpreted packets
makepacketstreamo :: TVar Int -> OutputStream ByteString -> IO (OutputStream Uninterpreted) Source #
make an output stream of uninterpreted packets
:: TVar (ByteString -> IO ByteString) | decryptor |
-> InputStream ByteString | input stream |
-> IO (InputStream ByteString) | new input stream |
register an octet streaming decryptor to an input stream
:: TVar (ByteString -> IO ByteString) | encryptor |
-> OutputStream ByteString | output stream |
-> IO (OutputStream ByteString) | new output stream |
register an octet stremaing encryptor to an output stream