From 97175350f538c0164eed85d21f7bc239304d1ef1 Mon Sep 17 00:00:00 2001 From: James Crayne Date: Mon, 28 May 2018 22:45:10 +0000 Subject: more todo comments on netcrypto function --- src/Network/Tox.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Network') diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index e65110e1..61f0bab0 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs @@ -286,8 +286,9 @@ netCrypto tox myseckey theirpubkey = do Nothing -> error "netCrypto: todo" -- if no session: -- 1) send dht key, actually maybe send dht-key regardless - -- 2) send handshakes to last seen ip's, if any - -- + -- 2) if no IP, search for their node(dht-key) + -- 3) if no dht-key, output error message return empty + -- 4) send handshakes to last seen ip's, if any getContactInfo :: Tox -> IO DHT.DHTPublicKey getContactInfo Tox{toxCryptoKeys,toxRouting} = join $ atomically $ do -- cgit v1.2.3