summaryrefslogtreecommitdiff
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
parentecde95b20167e02092f6a359eac865ba9155614c (diff)
Rename Network.BitTorrent.DHT.Routing -> Network.DHT.Routing
-rw-r--r--bittorrent.cabal4
-rw-r--r--examples/dhtd.hs2
-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
8 files changed, 18 insertions, 18 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index 72487459..c456350f 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -89,7 +89,7 @@ library
89 Network.BitTorrent.DHT.ContactInfo 89 Network.BitTorrent.DHT.ContactInfo
90 Network.BitTorrent.DHT.Message 90 Network.BitTorrent.DHT.Message
91 Network.BitTorrent.DHT.Query 91 Network.BitTorrent.DHT.Query
92 Network.BitTorrent.DHT.Routing 92 Network.DHT.Routing
93 Network.BitTorrent.DHT.Session 93 Network.BitTorrent.DHT.Session
94 Network.BitTorrent.DHT.Token 94 Network.BitTorrent.DHT.Token
95 Network.StreamServer 95 Network.StreamServer
@@ -271,7 +271,7 @@ test-suite spec
271 Network.BitTorrent.DHT.TestData 271 Network.BitTorrent.DHT.TestData
272 Network.BitTorrent.DHT.MessageSpec 272 Network.BitTorrent.DHT.MessageSpec
273 Network.BitTorrent.DHT.QuerySpec 273 Network.BitTorrent.DHT.QuerySpec
274 Network.BitTorrent.DHT.RoutingSpec 274 Network.DHT.RoutingSpec
275 Network.BitTorrent.DHT.SessionSpec 275 Network.BitTorrent.DHT.SessionSpec
276 Network.BitTorrent.DHT.TokenSpec 276 Network.BitTorrent.DHT.TokenSpec
277 Network.BitTorrent.Internal.CacheSpec 277 Network.BitTorrent.Internal.CacheSpec
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index ab6ea2c1..2331463d 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -39,7 +39,7 @@ import Network.BitTorrent.DHT.Query
39import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) 39import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..))
40import Network.DatagramServer (QueryFailure(..)) 40import Network.DatagramServer (QueryFailure(..))
41import Network.DatagramServer.Mainline (ReflectedIP(..),KMessageOf) 41import Network.DatagramServer.Mainline (ReflectedIP(..),KMessageOf)
42import qualified Network.BitTorrent.DHT.Routing as R 42import qualified Network.DHT.Routing as R
43import Network.BitTorrent.DHT.Session 43import Network.BitTorrent.DHT.Session
44import Network.SocketLike 44import Network.SocketLike
45import Network.StreamServer 45import Network.StreamServer
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