summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-04-02 15:05:31 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-04-02 15:05:31 +0400
commit51d8b40d3b2a4a6f18d8eb1794a4d1c29ab52587 (patch)
tree90fcb9c50953f06ca70b9bf9c033648c23103ea1
parentc592e8e5a267ab4142f34e0ef023c797a99f8462 (diff)
Add some bootstrapping terms explanation
-rw-r--r--src/Network/BitTorrent/DHT.hs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/DHT.hs b/src/Network/BitTorrent/DHT.hs
index ec9dace8..f587f7c8 100644
--- a/src/Network/BitTorrent/DHT.hs
+++ b/src/Network/BitTorrent/DHT.hs
@@ -24,6 +24,7 @@ module Network.BitTorrent.DHT
24 , dht 24 , dht
25 25
26 -- * Bootstrapping 26 -- * Bootstrapping
27 -- $bootstrapping-terms
27 , tNodes 28 , tNodes
28 , defaultBootstrapNodes 29 , defaultBootstrapNodes
29 , resolveHostName 30 , resolveHostName
@@ -93,6 +94,29 @@ dht opts addr action = do
93{----------------------------------------------------------------------- 94{-----------------------------------------------------------------------
94-- Bootstrapping 95-- Bootstrapping
95-----------------------------------------------------------------------} 96-----------------------------------------------------------------------}
97-- $bootstrapping-terms
98--
99-- [@Bootstrapping@] DHT @bootstrapping@ is the process of filling
100-- routing 'Table' by /good/ nodes.
101--
102-- [@Bootstrapping time@] Bootstrapping process can take up to 5
103-- minutes. Bootstrapping should only happen at first application
104-- startup, if possible you should use 'snapshot' & 'restore'
105-- mechanism which must work faster.
106--
107-- [@Bootstrap nodes@] DHT @bootstrap node@ is either:
108--
109-- * a specialized high performance node maintained by bittorrent
110-- software authors\/maintainers, like those listed in
111-- 'defaultBootstrapNodes'. /Specialized/ means that those nodes
112-- may not support 'insert' queries and is running for the sake of
113-- bootstrapping only.
114--
115-- * an ordinary bittorrent client running DHT node. The list of
116-- such bootstrapping nodes usually obtained from
117-- 'Data.Torrent.tNodes' field or
118-- 'Network.BitTorrent.Exchange.Message.Port' messages.
119
96-- Do not include the following hosts in the default bootstrap nodes list: 120-- Do not include the following hosts in the default bootstrap nodes list:
97-- 121--
98-- * "dht.aelitis.com" and "dht6.azureusplatform.com" - since 122-- * "dht.aelitis.com" and "dht6.azureusplatform.com" - since