diff options
author | joe <joe@jerkface.net> | 2017-09-15 06:22:10 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-09-15 06:22:10 -0400 |
commit | 12cbb3af2413dc28838ed271351dda16df8f7bdb (patch) | |
tree | 2db77a787e18a81a8369a8d73fee369d8826f064 /bittorrent/src/Network/BitTorrent.hs | |
parent | 362357c6d08cbd8dffa627a1e80199dcb9ba231f (diff) |
Separating dht-client library from bittorrent package.
Diffstat (limited to 'bittorrent/src/Network/BitTorrent.hs')
-rw-r--r-- | bittorrent/src/Network/BitTorrent.hs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/bittorrent/src/Network/BitTorrent.hs b/bittorrent/src/Network/BitTorrent.hs new file mode 100644 index 00000000..91a58887 --- /dev/null +++ b/bittorrent/src/Network/BitTorrent.hs | |||
@@ -0,0 +1,61 @@ | |||
1 | -- | | ||
2 | -- Copyright : (c) Sam Truzjan 2013 | ||
3 | -- License : BSD3 | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : experimental | ||
6 | -- Portability : portable | ||
7 | -- | ||
8 | {-# LANGUAGE RecordWildCards #-} | ||
9 | module Network.BitTorrent | ||
10 | ( -- * Client | ||
11 | Options (..) | ||
12 | |||
13 | -- ** Session | ||
14 | , Client | ||
15 | , clientPeerId | ||
16 | , clientListenerPort | ||
17 | , allowedExtensions | ||
18 | |||
19 | -- ** Initialization | ||
20 | , LogFun | ||
21 | , newClient | ||
22 | , closeClient | ||
23 | , withClient | ||
24 | |||
25 | -- ** Monadic | ||
26 | , MonadBitTorrent (..) | ||
27 | , BitTorrent | ||
28 | , runBitTorrent | ||
29 | , getClient | ||
30 | , simpleClient | ||
31 | |||
32 | -- * Torrent | ||
33 | -- ** Source | ||
34 | , InfoHash | ||
35 | , Magnet | ||
36 | , InfoDict | ||
37 | , Torrent | ||
38 | |||
39 | -- ** Handle | ||
40 | , Handle | ||
41 | , handleTopic | ||
42 | , handleTrackers | ||
43 | , handleExchange | ||
44 | |||
45 | , TorrentSource(openHandle) | ||
46 | , closeHandle | ||
47 | , getHandle | ||
48 | , getIndex | ||
49 | |||
50 | -- ** Control | ||
51 | , start | ||
52 | , pause | ||
53 | , stop | ||
54 | |||
55 | -- * Events | ||
56 | , EventSource (..) | ||
57 | ) where | ||
58 | |||
59 | import Data.Torrent | ||
60 | import Network.BitTorrent.Client | ||
61 | import Network.BitTorrent.Internal.Types \ No newline at end of file | ||