summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent.hs')
-rw-r--r--src/Network/BitTorrent.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Network/BitTorrent.hs b/src/Network/BitTorrent.hs
index b9dc39eb..546c7644 100644
--- a/src/Network/BitTorrent.hs
+++ b/src/Network/BitTorrent.hs
@@ -12,7 +12,7 @@ module Network.BitTorrent
12 12
13 -- * Session 13 -- * Session
14 , ClientSession 14 , ClientSession
15 , newClient 15 , newClient, defaultClient
16 16
17 , SwarmSession 17 , SwarmSession
18 , newLeacher, newSeeder 18 , newLeacher, newSeeder
@@ -27,6 +27,8 @@ module Network.BitTorrent
27 , Block(..), BlockIx(..), ppBlock, ppBlockIx 27 , Block(..), BlockIx(..), ppBlock, ppBlockIx
28 28
29 , awaitEvent, yieldEvent 29 , awaitEvent, yieldEvent
30
31 , Extension, defaultExtensions, ppExtension
30 ) where 32 ) where
31 33
32import Control.Concurrent 34import Control.Concurrent
@@ -41,7 +43,11 @@ import Network.BitTorrent.Internal
41import Network.BitTorrent.Exchange 43import Network.BitTorrent.Exchange
42import Network.BitTorrent.Exchange.Protocol 44import Network.BitTorrent.Exchange.Protocol
43import Network.BitTorrent.Tracker 45import Network.BitTorrent.Tracker
46import Network.BitTorrent.Extension
47
44 48
49defaultClient :: IO ClientSession
50defaultClient = newClient defaultThreadCount defaultExtensions
45 51
46-- discover should hide tracker and DHT communication under the hood 52-- discover should hide tracker and DHT communication under the hood
47-- thus we can obtain an unified interface 53-- thus we can obtain an unified interface