diff options
author | joe <joe@jerkface.net> | 2017-06-08 03:07:13 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-06-08 03:07:13 -0400 |
commit | 8c33deac14ca92ef67afc7fbcd3f67bc19317f88 (patch) | |
tree | e7636f38ae91ff0ef7c84091ccc65048cc45fea5 /src/Network/BitTorrent/DHT/Message.hs | |
parent | d6fac9a8df0ce872ede54d6a71ca6d6c750eadc9 (diff) |
WIP: Adapting DHT to Tox network (part 6).
Diffstat (limited to 'src/Network/BitTorrent/DHT/Message.hs')
-rw-r--r-- | src/Network/BitTorrent/DHT/Message.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs index c3df683a..c99c72bb 100644 --- a/src/Network/BitTorrent/DHT/Message.hs +++ b/src/Network/BitTorrent/DHT/Message.hs | |||
@@ -113,8 +113,10 @@ import Data.Maybe | |||
113 | 113 | ||
114 | import Data.Torrent (InfoHash) | 114 | import Data.Torrent (InfoHash) |
115 | import Network.BitTorrent.DHT.Token | 115 | import Network.BitTorrent.DHT.Token |
116 | #ifdef VERSION_bencoding | ||
116 | import Network.KRPC () | 117 | import Network.KRPC () |
117 | import Network.DHT.Mainline () | 118 | import Network.DHT.Mainline () |
119 | #endif | ||
118 | import Network.RPC hiding (Query,Response) | 120 | import Network.RPC hiding (Query,Response) |
119 | 121 | ||
120 | {----------------------------------------------------------------------- | 122 | {----------------------------------------------------------------------- |
@@ -237,7 +239,7 @@ instance KRPC (Query Ping) (Response Ping) where | |||
237 | #ifdef VERSION_bencoding | 239 | #ifdef VERSION_bencoding |
238 | newtype FindNode ip = FindNode (NodeId KMessageOf) | 240 | newtype FindNode ip = FindNode (NodeId KMessageOf) |
239 | #else | 241 | #else |
240 | data FindNode ip = FindNode NodeId Tox.Nonce8 -- Tox: Get Nodes | 242 | data FindNode ip = FindNode (NodeId Tox.Message) Tox.Nonce8 -- Tox: Get Nodes |
241 | #endif | 243 | #endif |
242 | deriving (Show, Eq, Typeable) | 244 | deriving (Show, Eq, Typeable) |
243 | 245 | ||