Safe Haskell | None |
---|
- data Session m
- withServerSession :: Transport (ErrorT TransportError IO) -> ByteString -> (Session (ErrorT TransportError IO) -> ErrorT TransportError IO a) -> ErrorT TransportError IO a
- withAccept :: Session (ErrorT TransportError IO) -> (ByteString -> Maybe (Transport (ErrorT TransportError IO) -> ErrorT TransportError IO ())) -> ErrorT TransportError IO ()
- module Network.ADB.Transport
Documentation
withServerSession :: Transport (ErrorT TransportError IO) -> ByteString -> (Session (ErrorT TransportError IO) -> ErrorT TransportError IO a) -> ErrorT TransportError IO aSource
withAccept :: Session (ErrorT TransportError IO) -> (ByteString -> Maybe (Transport (ErrorT TransportError IO) -> ErrorT TransportError IO ())) -> ErrorT TransportError IO ()Source
Loop forever, accepting incoming connections. The specified function returns some code to spawn on a new thread if we should accept a connection on the specified URI.
module Network.ADB.Transport