adb-0.1.0.0: Android Debug Bridge (ADB) protocol

Safe HaskellNone

Network.ADB.Transport

Synopsis

Documentation

data Transport m Source

'm' is the monad to to run it in, 'h' is the heuristic value which, where 'e' is ByteString, is the number of bytes to read. 'e' is the stream element type.

Constructors

Transport 

Fields

write :: ByteString -> m ()

Write an item.

read :: Int -> m ByteString

Read an item with h being the heuristic to say what it is we want to read.

close :: m ()
 

readFully :: Monad m => Transport m -> Int -> m ByteStringSource

Block until the specified number of bytes has been read.