summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent.hs
blob: 8764d91d1dde15e463666fd295b0c293adc979be (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
-- |
--   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
       , newClient
       , closeClient
       , withClient

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

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

         -- ** Handle
       , TorrentSource(openHandle)
       , closeHandle

         -- ** Control
       , start
       , pause
       , stop
       ) where

import Data.Torrent as BT
import Data.Torrent.InfoHash as BT
import Data.Torrent.Magnet as BT
import Network.BitTorrent.Client as BT