diff options
author | Joe Crayne <joe@jerkface.net> | 2018-12-04 20:11:17 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2018-12-16 14:08:26 -0500 |
commit | 3bb64acc07833b81b6e6cdb8fff3768a142d5be6 (patch) | |
tree | 65ebfa31cc45076cf73e1c24594b803c0592a07a /src/Network/Tox.hs | |
parent | fad30ffd5cb4ebba085029626f0be255fc8df237 (diff) |
Method to ping TCP relays.
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 7 |
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. | ||
360 | forkTox :: Tox extra -> Bool -> IO (IO (), [NodeInfo] -> [NodeInfo] -> IO (), [NodeInfo] -> [NodeInfo] -> IO ()) | 367 | forkTox :: Tox extra -> Bool -> IO (IO (), [NodeInfo] -> [NodeInfo] -> IO (), [NodeInfo] -> [NodeInfo] -> IO ()) |
361 | forkTox tox with_avahi = do | 368 | forkTox tox with_avahi = do |
362 | quitHs <- forkListener "toxHandshakes" (toxHandshakes tox) | 369 | quitHs <- forkListener "toxHandshakes" (toxHandshakes tox) |