diff options
author | joe <joe@jerkface.net> | 2017-07-01 11:35:50 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-07-01 11:35:50 -0400 |
commit | 0fc13f131aaeb7e9a4efcdd0ff934bdb2963cb83 (patch) | |
tree | 89552fce5a19db2af10316d852ca3d716848481e /examples/dhtd.hs | |
parent | e22ca7f163b6b771a570013d506f5d5f6576c2aa (diff) |
Implemented instance Kademlia Tox.Message
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 3 |
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 | ||
226 | instance Kademlia Tox.Message where | 226 | instance 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 | |||
229 | instance Pretty (NodeId Tox.Message) where | 232 | instance Pretty (NodeId Tox.Message) where |
230 | instance Pretty (NodeInfo Tox.Message IPv4 ()) where | 233 | instance Pretty (NodeInfo Tox.Message IPv4 ()) where |
231 | instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO | 234 | instance Pretty (NodeInfo Tox.Message IPv4 Bool) where -- TODO |