summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Client.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Client.hs')
-rw-r--r--src/Network/BitTorrent/Client.hs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Client.hs b/src/Network/BitTorrent/Client.hs
index 2ab61ae0..0eeb6ecd 100644
--- a/src/Network/BitTorrent/Client.hs
+++ b/src/Network/BitTorrent/Client.hs
@@ -28,12 +28,18 @@ module Network.BitTorrent.Client
28 28
29 -- * Handle 29 -- * Handle
30 , Handle 30 , Handle
31 , topic 31 , handleTopic
32 , handleTrackers
33
34 -- ** Construction
32 , TorrentSource (..) 35 , TorrentSource (..)
33 , closeHandle 36 , closeHandle
37
38 -- ** Query
34 , getHandle 39 , getHandle
35 , getIndex 40 , getIndex
36 41
42 -- ** Management
37 , start 43 , start
38 , pause 44 , pause
39 , stop 45 , stop
@@ -93,7 +99,7 @@ connHandler tmap ih = do
93 m <- readMVar tmap 99 m <- readMVar tmap
94 case HM.lookup ih m of 100 case HM.lookup ih m of
95 Nothing -> error "torrent not found" 101 Nothing -> error "torrent not found"
96 Just (Handle {..}) -> return exchange 102 Just (Handle {..}) -> return handleExchange
97 103
98initClient :: Options -> LogFun -> ResIO Client 104initClient :: Options -> LogFun -> ResIO Client
99initClient opts @ Options {..} logFun = do 105initClient opts @ Options {..} logFun = do