diff options
Diffstat (limited to 'src/Network/BitTorrent.hs')
-rw-r--r-- | src/Network/BitTorrent.hs | 8 |
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 | ||
32 | import Control.Concurrent | 34 | import Control.Concurrent |
@@ -41,7 +43,11 @@ import Network.BitTorrent.Internal | |||
41 | import Network.BitTorrent.Exchange | 43 | import Network.BitTorrent.Exchange |
42 | import Network.BitTorrent.Exchange.Protocol | 44 | import Network.BitTorrent.Exchange.Protocol |
43 | import Network.BitTorrent.Tracker | 45 | import Network.BitTorrent.Tracker |
46 | import Network.BitTorrent.Extension | ||
47 | |||
44 | 48 | ||
49 | defaultClient :: IO ClientSession | ||
50 | defaultClient = 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 |