diff options
-rw-r--r-- | bittorrent.cabal | 4 | ||||
-rw-r--r-- | examples/dhtd.hs | 2 | ||||
-rw-r--r-- | src/Data/Torrent.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Message.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Query.hs | 2 | ||||
-rw-r--r-- | src/Network/BitTorrent/DHT/Session.hs | 2 | ||||
-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 | |||
39 | import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) | 39 | import Network.BitTorrent.DHT.Message (FindNode(..),NodeFound(..),GetPeers(..),GotPeers(..)) |
40 | import Network.DatagramServer (QueryFailure(..)) | 40 | import Network.DatagramServer (QueryFailure(..)) |
41 | import Network.DatagramServer.Mainline (ReflectedIP(..),KMessageOf) | 41 | import Network.DatagramServer.Mainline (ReflectedIP(..),KMessageOf) |
42 | import qualified Network.BitTorrent.DHT.Routing as R | 42 | import qualified Network.DHT.Routing as R |
43 | import Network.BitTorrent.DHT.Session | 43 | import Network.BitTorrent.DHT.Session |
44 | import Network.SocketLike | 44 | import Network.SocketLike |
45 | import Network.StreamServer | 45 | import 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 | |||
195 | import System.Posix.Types | 195 | import System.Posix.Types |
196 | 196 | ||
197 | import Network.BitTorrent.Address | 197 | import Network.BitTorrent.Address |
198 | import Network.BitTorrent.DHT.Routing | 198 | import Network.DHT.Routing |
199 | import Network.DatagramServer.Mainline | 199 | import 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 | |||
68 | import Network.BitTorrent.Address | 68 | import Network.BitTorrent.Address |
69 | import Network.BitTorrent.DHT.Query | 69 | import Network.BitTorrent.DHT.Query |
70 | import Network.BitTorrent.DHT.Session | 70 | import Network.BitTorrent.DHT.Session |
71 | import Network.BitTorrent.DHT.Routing as T hiding (null) | 71 | import Network.DHT.Routing as T hiding (null) |
72 | import qualified Data.Text as Text | 72 | import qualified Data.Text as Text |
73 | import Data.Monoid | 73 | import Data.Monoid |
74 | import Network.DatagramServer.Mainline (KMessageOf) | 74 | import 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(..)) | |||
87 | import Network.DatagramServer (QueryFailure(..)) | 87 | import Network.DatagramServer (QueryFailure(..)) |
88 | import Data.Torrent | 88 | import Data.Torrent |
89 | import Network.BitTorrent.DHT.Message | 89 | import Network.BitTorrent.DHT.Message |
90 | import Network.BitTorrent.DHT.Routing as R | 90 | import Network.DHT.Routing as R |
91 | import Network.BitTorrent.DHT.Session | 91 | import Network.BitTorrent.DHT.Session |
92 | import Control.Concurrent.STM | 92 | import Control.Concurrent.STM |
93 | import qualified Network.BitTorrent.DHT.Search as Search | 93 | import 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 | |||
117 | import Network.BitTorrent.DHT.ContactInfo (PeerStore) | 117 | import Network.BitTorrent.DHT.ContactInfo (PeerStore) |
118 | import qualified Network.BitTorrent.DHT.ContactInfo as P | 118 | import qualified Network.BitTorrent.DHT.ContactInfo as P |
119 | import Network.BitTorrent.DHT.Message | 119 | import Network.BitTorrent.DHT.Message |
120 | import Network.BitTorrent.DHT.Routing as R | 120 | import Network.DHT.Routing as R |
121 | import Network.BitTorrent.DHT.Token as T | 121 | import 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 #-} |
25 | module Network.BitTorrent.DHT.Routing | 25 | module 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 | ||
365 | instance (Eq ip, Eq (NodeId dht)) => Eq (Table dht ip u) where | 365 | instance (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 | ||
368 | instance Serialize NominalDiffTime where | 368 | instance Serialize NominalDiffTime where |
369 | put = putWord32be . fromIntegral . fromEnum | 369 | put = putWord32be . fromIntegral . fromEnum |