summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-11 12:30:50 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-11 12:30:50 +0400
commit0ec910a0fb7c1e5d72e06f00806b85111138461a (patch)
tree396fbcac569a171d9ef0e2ffe59dbd27a7f6978f /examples
parent4fef598f29cbb138e7b93c5011887c2b92a12879 (diff)
Add exchange manager and session to client session
Diffstat (limited to 'examples')
-rw-r--r--examples/Client.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/Client.hs b/examples/Client.hs
index 2fc66101..0ed4bb6f 100644
--- a/examples/Client.hs
+++ b/examples/Client.hs
@@ -1,9 +1,12 @@
1module Main (main) where 1module Main (main) where
2import Control.Concurrent
3import Control.Monad.Trans
2import System.Environment 4import System.Environment
3import System.Exit 5import System.Exit
4import System.IO 6import System.IO
5import Network.BitTorrent 7import Network.BitTorrent
6 8
9
7parseArgs :: IO FilePath 10parseArgs :: IO FilePath
8parseArgs = do 11parseArgs = do
9 args <- getArgs 12 args <- getArgs
@@ -19,4 +22,5 @@ main = do
19 torrent <- fromFile path 22 torrent <- fromFile path
20 simpleClient $ do 23 simpleClient $ do
21 h <- openTorrent torrent 24 h <- openTorrent torrent
22 return () 25 start h
26 liftIO $ threadDelay 10000000000