From e11c282d73301baf774d28d67db20af032429aad Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 21 Jun 2018 13:59:54 -0400 Subject: Documented NodeInfoCallback. --- src/Network/Tox/DHT/Handlers.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Network/Tox/DHT/Handlers.hs b/src/Network/Tox/DHT/Handlers.hs index 58a29c3e..6c29e958 100644 --- a/src/Network/Tox/DHT/Handlers.hs +++ b/src/Network/Tox/DHT/Handlers.hs @@ -121,8 +121,11 @@ classify client msg = fromMaybe (IsUnknown "unknown") data NodeInfoCallback = NodeInfoCallback { interestingNodeId :: NodeId , listenerId :: Int - , observedAddress :: POSIXTime -> NodeInfo -> STM () - , rumoredAddress :: POSIXTime -> SockAddr -> NodeInfo -> STM () + , observedAddress :: POSIXTime -> NodeInfo -- Address and port for interestingNodeId + -> STM () + , rumoredAddress :: POSIXTime -> SockAddr -- source of information + -> NodeInfo -- Address and port for interestingNodeId + -> STM () } data Routing = Routing -- cgit v1.2.3