adb-0.1.0.1: Android Debug Bridge (ADB) protocol

Safe HaskellNone
LanguageHaskell2010

Network.ADB.Server

Synopsis

Documentation

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.