summaryrefslogtreecommitdiff
path: root/dht/bittorrent/src/Network/BitTorrent.hs
blob: 91a58887a2491c1757534655dbfc556166b4694c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
-- |
--   Copyright   :  (c) Sam Truzjan 2013
--   License     :  BSD3
--   Maintainer  :  pxqr.sta@gmail.com
--   Stability   :  experimental
--   Portability :  portable
--
{-# LANGUAGE RecordWildCards #-}
module Network.BitTorrent
       ( -- * Client
         Options (..)

         -- ** Session
       , Client
       , clientPeerId
       , clientListenerPort
       , allowedExtensions

         -- ** Initialization
       , LogFun
       , newClient
       , closeClient
       , withClient

         -- ** Monadic
       , MonadBitTorrent (..)
       , BitTorrent
       , runBitTorrent
       , getClient
       , simpleClient

         -- * Torrent
         -- ** Source
       , InfoHash
       , Magnet
       , InfoDict
       , Torrent

         -- ** Handle
       , Handle
       , handleTopic
       , handleTrackers
       , handleExchange

       , TorrentSource(openHandle)
       , closeHandle
       , getHandle
       , getIndex

         -- ** Control
       , start
       , pause
       , stop

         -- * Events
       , EventSource (..)
       ) where

import Data.Torrent
import Network.BitTorrent.Client
import Network.BitTorrent.Internal.Types