1-- A concurrent TCP server that echoes everything that it receives.
3import Data.Function ((&))
6import Streamly.Internal.Network.Socket (handleWithM)
7import Streamly.Network.Socket
9import qualified Streamly.Network.Inet.TCP as TCP
10import qualified Streamly.Prelude as S
14 serially (S.unfold TCP.acceptOnPort 8091)
15 & parallely . S.mapM (handleWithM echo)
21 S.unfold readChunksWithBufferOf (32768, sk) -- SerialT IO Socket
22 & S.fold (writeChunks sk) -- IO ()
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list