diff options
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/Torrent/PeerID.hs | 13 | ||||
-rw-r--r-- | src/Network/Torrent/PeerWire.hs | 7 | ||||
-rw-r--r-- | src/Network/Torrent/PeerWire/Handshake.hs | 7 | ||||
-rw-r--r-- | src/Network/Torrent/Tracker.hs | 9 | ||||
-rw-r--r-- | src/Network/Torrent/Tracker/Scrape.hs | 11 |
5 files changed, 42 insertions, 5 deletions
diff --git a/src/Network/Torrent/PeerID.hs b/src/Network/Torrent/PeerID.hs index 7071bc9b..7d928f80 100644 --- a/src/Network/Torrent/PeerID.hs +++ b/src/Network/Torrent/PeerID.hs | |||
@@ -1,8 +1,17 @@ | |||
1 | {-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-} | ||
2 | -- TODO: tests | 1 | -- TODO: tests |
3 | -- | Recommended method for generation of the peer ID's is 'newPeerID', | 2 | -- | |
3 | -- Copyright : (c) Sam T. 2013 | ||
4 | -- License : MIT | ||
5 | -- Maintainer : pxqr.sta@gmail.com | ||
6 | -- Stability : experimental | ||
7 | -- Portability : non-portable | ||
8 | -- | ||
9 | -- This module provides 'Peer' and 'PeerID' datatypes and all related | ||
10 | -- operations. | ||
11 | -- Recommended method for generation of the peer ID's is 'newPeerID', | ||
4 | -- though this module exports some other goodies for custom generation. | 12 | -- though this module exports some other goodies for custom generation. |
5 | -- | 13 | -- |
14 | {-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-} | ||
6 | module Network.Torrent.PeerID | 15 | module Network.Torrent.PeerID |
7 | ( -- * Peer addr | 16 | ( -- * Peer addr |
8 | Peer(..) | 17 | Peer(..) |
diff --git a/src/Network/Torrent/PeerWire.hs b/src/Network/Torrent/PeerWire.hs index 27ecda79..f84b7016 100644 --- a/src/Network/Torrent/PeerWire.hs +++ b/src/Network/Torrent/PeerWire.hs | |||
@@ -1,3 +1,10 @@ | |||
1 | -- | | ||
2 | -- Copyright : (c) Sam T. 2013 | ||
3 | -- License : MIT | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : experimental | ||
6 | -- Portability : portable | ||
7 | -- | ||
1 | {-# LANGUAGE DoAndIfThenElse #-} | 8 | {-# LANGUAGE DoAndIfThenElse #-} |
2 | module Network.Torrent.PeerWire | 9 | module Network.Torrent.PeerWire |
3 | ( module Network.Torrent.PeerWire.Handshake | 10 | ( module Network.Torrent.PeerWire.Handshake |
diff --git a/src/Network/Torrent/PeerWire/Handshake.hs b/src/Network/Torrent/PeerWire/Handshake.hs index 8177fe41..733d5785 100644 --- a/src/Network/Torrent/PeerWire/Handshake.hs +++ b/src/Network/Torrent/PeerWire/Handshake.hs | |||
@@ -1,3 +1,10 @@ | |||
1 | -- | | ||
2 | -- Copyright : (c) Sam T. 2013 | ||
3 | -- License : MIT | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : experimental | ||
6 | -- Portability : portable | ||
7 | -- | ||
1 | {-# LANGUAGE OverloadedStrings #-} | 8 | {-# LANGUAGE OverloadedStrings #-} |
2 | module Network.Torrent.PeerWire.Handshake | 9 | module Network.Torrent.PeerWire.Handshake |
3 | ( Handshake | 10 | ( Handshake |
diff --git a/src/Network/Torrent/Tracker.hs b/src/Network/Torrent/Tracker.hs index 0d38cc05..ffbdc949 100644 --- a/src/Network/Torrent/Tracker.hs +++ b/src/Network/Torrent/Tracker.hs | |||
@@ -1,4 +1,11 @@ | |||
1 | -- TODO: add "compact" field | 1 | -- TODO: add "compact" field to TRequest |
2 | -- | | ||
3 | -- Copyright : (c) Sam T. 2013 | ||
4 | -- License : MIT | ||
5 | -- Maintainer : pxqr.sta@gmail.com | ||
6 | -- Stability : experimental | ||
7 | -- Portability : non-portable | ||
8 | -- | ||
2 | {-# OPTIONS -fno-warn-orphans #-} | 9 | {-# OPTIONS -fno-warn-orphans #-} |
3 | {-# LANGUAGE OverloadedStrings #-} | 10 | {-# LANGUAGE OverloadedStrings #-} |
4 | module Network.Torrent.Tracker | 11 | module Network.Torrent.Tracker |
diff --git a/src/Network/Torrent/Tracker/Scrape.hs b/src/Network/Torrent/Tracker/Scrape.hs index 80a9fc0a..f5ebbea4 100644 --- a/src/Network/Torrent/Tracker/Scrape.hs +++ b/src/Network/Torrent/Tracker/Scrape.hs | |||
@@ -1,9 +1,16 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | 1 | -- | |
2 | -- | By convention most trackers support anouther form of request, | 2 | -- Copyright : (c) Sam T. 2013 |
3 | -- License : MIT | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : experimental | ||
6 | -- Portability : portable | ||
7 | -- | ||
8 | -- By convention most trackers support anouther form of request, | ||
3 | -- which queries the state of a given torrent (or all torrents) that the | 9 | -- which queries the state of a given torrent (or all torrents) that the |
4 | -- tracker is managing. This module provides a way to easily request | 10 | -- tracker is managing. This module provides a way to easily request |
5 | -- scrape info for a particular torrent list. | 11 | -- scrape info for a particular torrent list. |
6 | -- | 12 | -- |
13 | {-# LANGUAGE OverloadedStrings #-} | ||
7 | module Network.Torrent.Tracker.Scrape | 14 | module Network.Torrent.Tracker.Scrape |
8 | ( ScrapeInfo(..), Scrape | 15 | ( ScrapeInfo(..), Scrape |
9 | , scrapeURL | 16 | , scrapeURL |