summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-21 13:59:54 -0400
committerjoe <joe@jerkface.net>2018-06-21 13:59:54 -0400
commite11c282d73301baf774d28d67db20af032429aad (patch)
tree98c3115deb490174dc7ce6fb8e2d0597dfb3a24d /src
parentb38fd1493e48fac93c79fbb8dfd1d5860278d5b3 (diff)
Documented NodeInfoCallback.
Diffstat (limited to 'src')
-rw-r--r--src/Network/Tox/DHT/Handlers.hs7
1 files changed, 5 insertions, 2 deletions
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")
121data NodeInfoCallback = NodeInfoCallback 121data NodeInfoCallback = NodeInfoCallback
122 { interestingNodeId :: NodeId 122 { interestingNodeId :: NodeId
123 , listenerId :: Int 123 , listenerId :: Int
124 , observedAddress :: POSIXTime -> NodeInfo -> STM () 124 , observedAddress :: POSIXTime -> NodeInfo -- Address and port for interestingNodeId
125 , rumoredAddress :: POSIXTime -> SockAddr -> NodeInfo -> STM () 125 -> STM ()
126 , rumoredAddress :: POSIXTime -> SockAddr -- source of information
127 -> NodeInfo -- Address and port for interestingNodeId
128 -> STM ()
126 } 129 }
127 130
128data Routing = Routing 131data Routing = Routing