summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-06-09 01:10:19 -0400
committerjoe <joe@jerkface.net>2017-06-09 01:10:19 -0400
commit13b2eb08cb4651a913849d96f516ed97bad53003 (patch)
treed9855b98c496ac3cc4e1fe4ba36b1c1fd1e91a13 /src
parentecde95b20167e02092f6a359eac865ba9155614c (diff)
Rename Network.BitTorrent.DHT.Routing -> Network.DHT.Routing
Diffstat (limited to 'src')
-rw-r--r--src/Data/Torrent.hs2
-rw-r--r--src/Network/BitTorrent/DHT.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Message.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Query.hs2
-rw-r--r--src/Network/BitTorrent/DHT/Session.hs2
-rw-r--r--src/Network/DHT/Routing.hs (renamed from src/Network/BitTorrent/DHT/Routing.hs)20
6 files changed, 15 insertions, 15 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs
index 0ce2efd7..6a999478 100644
--- a/src/Data/Torrent.hs
+++ b/src/Data/Torrent.hs
@@ -195,7 +195,7 @@ import System.FilePath
195import System.Posix.Types 195import System.Posix.Types
196 196
197import Network.BitTorrent.Address 197import Network.BitTorrent.Address
198import Network.BitTorrent.DHT.Routing 198import Network.DHT.Routing
199import Network.DatagramServer.Mainline 199import Network.DatagramServer.Mainline
200 200
201 201
diff --git a/src/Network/BitTorrent/DHT.hs b/src/Network/BitTorrent/DHT.hs
index 169abcfc..13f3744f 100644
--- a/src/Network/BitTorrent/DHT.hs
+++ b/src/Network/BitTorrent/DHT.hs
@@ -68,7 +68,7 @@ import Data.Torrent
68import Network.BitTorrent.Address 68import Network.BitTorrent.Address
69import Network.BitTorrent.DHT.Query 69import Network.BitTorrent.DHT.Query
70import Network.BitTorrent.DHT.Session 70import Network.BitTorrent.DHT.Session
71import Network.BitTorrent.DHT.Routing as T hiding (null) 71import Network.DHT.Routing as T hiding (null)
72import qualified Data.Text as Text 72import qualified Data.Text as Text
73import Data.Monoid 73import Data.Monoid
74import Network.DatagramServer.Mainline (KMessageOf) 74import Network.DatagramServer.Mainline (KMessageOf)
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs
index d7fb5e66..34714a6a 100644
--- a/src/Network/BitTorrent/DHT/Message.hs
+++ b/src/Network/BitTorrent/DHT/Message.hs
@@ -24,7 +24,7 @@
24-- 24--
25-- * 'FindNode' query /may/ trigger 'Ping' query to check if a 25-- * 'FindNode' query /may/ trigger 'Ping' query to check if a
26-- list of nodes to return is /good/. See 26-- list of nodes to return is /good/. See
27-- 'Network.BitTorrent.DHT.Routing.Routing' for further explanation. 27-- 'Network.DHT.Routing.Routing' for further explanation.
28-- 28--
29-- * 'GetPeers' query may trigger 'Ping' query for the same reason. 29-- * 'GetPeers' query may trigger 'Ping' query for the same reason.
30-- 30--
diff --git a/src/Network/BitTorrent/DHT/Query.hs b/src/Network/BitTorrent/DHT/Query.hs
index 9adad163..cd2b5119 100644
--- a/src/Network/BitTorrent/DHT/Query.hs
+++ b/src/Network/BitTorrent/DHT/Query.hs
@@ -87,7 +87,7 @@ import Network.DatagramServer.Mainline (ReflectedIP(..))
87import Network.DatagramServer (QueryFailure(..)) 87import Network.DatagramServer (QueryFailure(..))
88import Data.Torrent 88import Data.Torrent
89import Network.BitTorrent.DHT.Message 89import Network.BitTorrent.DHT.Message
90import Network.BitTorrent.DHT.Routing as R 90import Network.DHT.Routing as R
91import Network.BitTorrent.DHT.Session 91import Network.BitTorrent.DHT.Session
92import Control.Concurrent.STM 92import Control.Concurrent.STM
93import qualified Network.BitTorrent.DHT.Search as Search 93import qualified Network.BitTorrent.DHT.Search as Search
diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs
index 0c819620..730c0059 100644
--- a/src/Network/BitTorrent/DHT/Session.hs
+++ b/src/Network/BitTorrent/DHT/Session.hs
@@ -117,7 +117,7 @@ import Network.BitTorrent.Address
117import Network.BitTorrent.DHT.ContactInfo (PeerStore) 117import Network.BitTorrent.DHT.ContactInfo (PeerStore)
118import qualified Network.BitTorrent.DHT.ContactInfo as P 118import qualified Network.BitTorrent.DHT.ContactInfo as P
119import Network.BitTorrent.DHT.Message 119import Network.BitTorrent.DHT.Message
120import Network.BitTorrent.DHT.Routing as R 120import Network.DHT.Routing as R
121import Network.BitTorrent.DHT.Token as T 121import Network.BitTorrent.DHT.Token as T
122 122
123{----------------------------------------------------------------------- 123{-----------------------------------------------------------------------
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/DHT/Routing.hs
index 54c0f7c5..c0a431fa 100644
--- a/src/Network/BitTorrent/DHT/Routing.hs
+++ b/src/Network/DHT/Routing.hs
@@ -22,7 +22,7 @@
22{-# LANGUAGE ScopedTypeVariables #-} 22{-# LANGUAGE ScopedTypeVariables #-}
23{-# LANGUAGE StandaloneDeriving, FlexibleContexts, MultiParamTypeClasses, FlexibleInstances #-} 23{-# LANGUAGE StandaloneDeriving, FlexibleContexts, MultiParamTypeClasses, FlexibleInstances #-}
24{-# OPTIONS_GHC -fno-warn-orphans #-} 24{-# OPTIONS_GHC -fno-warn-orphans #-}
25module Network.BitTorrent.DHT.Routing 25module Network.DHT.Routing
26 ( -- * Table 26 ( -- * Table
27 Table 27 Table
28 , Info(..) 28 , Info(..)
@@ -35,12 +35,12 @@ module Network.BitTorrent.DHT.Routing
35 , NodeCount 35 , NodeCount
36 36
37 -- * Query 37 -- * Query
38 , Network.BitTorrent.DHT.Routing.null 38 , Network.DHT.Routing.null
39 , Network.BitTorrent.DHT.Routing.full 39 , Network.DHT.Routing.full
40 , thisId 40 , thisId
41 , shape 41 , shape
42 , Network.BitTorrent.DHT.Routing.size 42 , Network.DHT.Routing.size
43 , Network.BitTorrent.DHT.Routing.depth 43 , Network.DHT.Routing.depth
44 , compatibleNodeId 44 , compatibleNodeId
45 45
46 -- * Lookup 46 -- * Lookup
@@ -50,14 +50,14 @@ module Network.BitTorrent.DHT.Routing
50 , kclosest 50 , kclosest
51 51
52 -- * Construction 52 -- * Construction
53 , Network.BitTorrent.DHT.Routing.nullTable 53 , Network.DHT.Routing.nullTable
54 , Event(..) 54 , Event(..)
55 , CheckPing(..) 55 , CheckPing(..)
56 , Network.BitTorrent.DHT.Routing.insert 56 , Network.DHT.Routing.insert
57 57
58 -- * Conversion 58 -- * Conversion
59 , Network.BitTorrent.DHT.Routing.TableEntry 59 , Network.DHT.Routing.TableEntry
60 , Network.BitTorrent.DHT.Routing.toList 60 , Network.DHT.Routing.toList
61 61
62 -- * Routing 62 -- * Routing
63 , Timestamp 63 , Timestamp
@@ -363,7 +363,7 @@ data Table dht ip u
363 deriving Generic 363 deriving Generic
364 364
365instance (Eq ip, Eq (NodeId dht)) => Eq (Table dht ip u) where 365instance (Eq ip, Eq (NodeId dht)) => Eq (Table dht ip u) where
366 (==) = (==) `on` Network.BitTorrent.DHT.Routing.toList 366 (==) = (==) `on` Network.DHT.Routing.toList
367 367
368instance Serialize NominalDiffTime where 368instance Serialize NominalDiffTime where
369 put = putWord32be . fromIntegral . fromEnum 369 put = putWord32be . fromIntegral . fromEnum