1-- A TCP client that does the following:
2-- * Reads multiple filenames passed on the command line
3-- * Opens as many concurrent connections to the server
4-- * Sends all the files concurrently to the server
6import System.Environment (getArgs)
9import qualified Streamly.Prelude as S
10import qualified Streamly.Internal.FileSystem.Handle as IFH
11import qualified Streamly.Internal.Network.Inet.TCP as TCP
13import System.IO (withFile, IOMode(..))
18 withFile file ReadMode $ \src ->
19 S.fold (TCP.writeChunks (127, 0, 0, 1) 8090)
21 in getArgs >>= S.drain . parallely . S.mapM sendFile . S.fromList
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