diff options
Diffstat (limited to 'src/Network/BitTorrent/Tracker/Protocol.hs')
-rw-r--r-- | src/Network/BitTorrent/Tracker/Protocol.hs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/Network/BitTorrent/Tracker/Protocol.hs b/src/Network/BitTorrent/Tracker/Protocol.hs index f5898d36..44398920 100644 --- a/src/Network/BitTorrent/Tracker/Protocol.hs +++ b/src/Network/BitTorrent/Tracker/Protocol.hs | |||
@@ -3,19 +3,20 @@ | |||
3 | -- License : MIT | 3 | -- License : MIT |
4 | -- Maintainer : pxqr.sta@gmail.com | 4 | -- Maintainer : pxqr.sta@gmail.com |
5 | -- Stability : experimental | 5 | -- Stability : experimental |
6 | -- Portability : non-portable | 6 | -- Portability : portable |
7 | -- | 7 | -- |
8 | -- Every tracker should support announce query. This query is used | ||
9 | -- to discover peers within swarm and have two-fold effect: | ||
8 | -- | 10 | -- |
9 | -- This module provides straigthforward Tracker protocol | 11 | -- * peer doing announce discover other peers using peer list from |
10 | -- implementation. The tracker is an HTTP/HTTPS service used to | 12 | -- the response to the announce query. |
11 | -- discovery peers for a particular existing torrent and keep | ||
12 | -- statistics about the swarm. | ||
13 | -- | 13 | -- |
14 | -- For more convenient high level API see | 14 | -- * tracker store peer information and use it in the succeeding |
15 | -- "Network.BitTorrent.Tracker" module. | 15 | -- requests made by other peers, until the peer info expires. |
16 | -- | 16 | -- |
17 | -- For more information see: | 17 | -- By convention most trackers support another form of request -- |
18 | -- <https://wiki.theory.org/BitTorrentSpecification#Tracker_HTTP.2FHTTPS_Protocol> | 18 | -- scrape query -- which queries the state of a given torrent (or |
19 | -- a list of torrents) that the tracker is managing. | ||
19 | -- | 20 | -- |
20 | {-# OPTIONS -fno-warn-orphans #-} | 21 | {-# OPTIONS -fno-warn-orphans #-} |
21 | {-# LANGUAGE OverloadedStrings #-} | 22 | {-# LANGUAGE OverloadedStrings #-} |