summaryrefslogtreecommitdiff
path: root/examples/Client.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Client.hs')
-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