diff options
author | joe <joe@jerkface.net> | 2017-06-15 20:08:08 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-06-15 20:08:08 -0400 |
commit | b9a2c3dd44f5dd59157676fb386584a148d854cb (patch) | |
tree | f9521b0e4e46cadfbc18722f3e077640e51e374b /src/Network/DHT | |
parent | 362d36e4e31da0d3e3f78cd0aa6dd99cddeaba49 (diff) |
Refactored insertNode.
Diffstat (limited to 'src/Network/DHT')
-rw-r--r-- | src/Network/DHT/Types.hs | 13 |
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 @@ | |||
1 | module Network.DHT.Types where | ||
2 | |||
3 | import Network.Socket (SockAddr) | ||
4 | import Network.DatagramServer.Types | ||
5 | import Network.DHT.Routing | ||
6 | |||
7 | data 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 | } | ||