summaryrefslogtreecommitdiff
path: root/src/Network/DHT
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-06-15 20:08:08 -0400
committerjoe <joe@jerkface.net>2017-06-15 20:08:08 -0400
commitb9a2c3dd44f5dd59157676fb386584a148d854cb (patch)
treef9521b0e4e46cadfbc18722f3e077640e51e374b /src/Network/DHT
parent362d36e4e31da0d3e3f78cd0aa6dd99cddeaba49 (diff)
Refactored insertNode.
Diffstat (limited to 'src/Network/DHT')
-rw-r--r--src/Network/DHT/Types.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Network/DHT/Types.hs b/src/Network/DHT/Types.hs
new file mode 100644
index 00000000..ed2dc175
--- /dev/null
+++ b/src/Network/DHT/Types.hs
@@ -0,0 +1,13 @@
1module Network.DHT.Types where
2
3import Network.Socket (SockAddr)
4import Network.DatagramServer.Types
5import Network.DHT.Routing
6
7data TableParameters msg ip u = TableParameters
8 { maxBuckets :: Int
9 , fallbackID :: NodeId msg
10 , pingProbe :: NodeAddr ip -> IO (Bool, Maybe ReflectedIP)
11 , logMessage :: Char -> String -> IO ()
12 , adjustID :: SockAddr -> Event msg ip u -> NodeId msg
13 }