summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-07-01 11:35:50 -0400
committerjoe <joe@jerkface.net>2017-07-01 11:35:50 -0400
commit0fc13f131aaeb7e9a4efcdd0ff934bdb2963cb83 (patch)
tree89552fce5a19db2af10316d852ca3d716848481e /examples/dhtd.hs
parente22ca7f163b6b771a570013d506f5d5f6576c2aa (diff)
Implemented instance Kademlia Tox.Message
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index e4716d1a..6dbc1120 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -225,7 +225,10 @@ ipType _ = return ()
225 225
226instance Kademlia Tox.Message where 226instance Kademlia Tox.Message where
227 data DHTData Tox.Message ip = ToxData 227 data DHTData Tox.Message ip = ToxData
228 namePing _ = Tox.Ping
229 nameFindNodes _ = Tox.GetNodes
228 initializeDHTData = return ToxData 230 initializeDHTData = return ToxData
231
229instance Pretty (NodeId Tox.Message) where 232instance Pretty (NodeId Tox.Message) where
230instance Pretty (NodeInfo Tox.Message IPv4 ()) where 233instance Pretty (NodeInfo Tox.Message IPv4 ()) where
231instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO 234instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO