summaryrefslogtreecommitdiff
path: root/src/Network/Tox.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-12-04 20:11:17 -0500
committerJoe Crayne <joe@jerkface.net>2018-12-16 14:08:26 -0500
commit3bb64acc07833b81b6e6cdb8fff3768a142d5be6 (patch)
tree65ebfa31cc45076cf73e1c24594b803c0592a07a /src/Network/Tox.hs
parentfad30ffd5cb4ebba085029626f0be255fc8df237 (diff)
Method to ping TCP relays.
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r--src/Network/Tox.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 46d87094..b98252d3 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -357,6 +357,13 @@ dnssdDiscover tox ni toxid = do
357 357
358 void $ DHT.ping (toxDHT tox) ni 358 void $ DHT.ping (toxDHT tox) ni
359 359
360-- | Returns:
361--
362-- * action to shutdown this node, terminating all threads.
363--
364-- * action to bootstrap an IPv4 Kademlia table.
365--
366-- * action to bootstrap an IPv6 Kademlia table.
360forkTox :: Tox extra -> Bool -> IO (IO (), [NodeInfo] -> [NodeInfo] -> IO (), [NodeInfo] -> [NodeInfo] -> IO ()) 367forkTox :: Tox extra -> Bool -> IO (IO (), [NodeInfo] -> [NodeInfo] -> IO (), [NodeInfo] -> [NodeInfo] -> IO ())
361forkTox tox with_avahi = do 368forkTox tox with_avahi = do
362 quitHs <- forkListener "toxHandshakes" (toxHandshakes tox) 369 quitHs <- forkListener "toxHandshakes" (toxHandshakes tox)