summaryrefslogtreecommitdiff
path: root/src/Network/Tox/DHT/Transport.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox/DHT/Transport.hs')
-rw-r--r--src/Network/Tox/DHT/Transport.hs28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Network/Tox/DHT/Transport.hs b/src/Network/Tox/DHT/Transport.hs
index 5a2d8a84..d7f8e0cd 100644
--- a/src/Network/Tox/DHT/Transport.hs
+++ b/src/Network/Tox/DHT/Transport.hs
@@ -146,21 +146,21 @@ noReplyAddr saddr = either (error . mappend "noReplyAddr: ") id $ nodeInfo zeroI
146 146
147 147
148data DHTRequest 148data DHTRequest
149-- #### NAT ping request 149 -- #### NAT ping request
150-- 150 --
151-- Length Contents 151 -- Length Contents
152-- :------- :------------------------- 152 -- :------- :-------------------------
153-- `1` `uint8_t` (0xfe) 153 -- `1` `uint8_t` (0xfe)
154-- `1` `uint8_t` (0x00) 154 -- `1` `uint8_t` (0x00)
155-- `8` `uint64_t` random number 155 -- `8` `uint64_t` random number
156 = NATPing Nonce8 156 = NATPing Nonce8
157-- #### NAT ping response 157 -- #### NAT ping response
158-- 158 --
159-- Length Contents 159 -- Length Contents
160-- :------- :----------------------------------------------------------------- 160 -- :------- :-----------------------------------------------------------------
161-- `1` `uint8_t` (0xfe) 161 -- `1` `uint8_t` (0xfe)
162-- `1` `uint8_t` (0x01) 162 -- `1` `uint8_t` (0x01)
163-- `8` `uint64_t` random number (the same that was received in request) 163 -- `8` `uint64_t` random number (the same that was received in request)
164 | NATPong Nonce8 164 | NATPong Nonce8
165 | DHTPK LongTermKeyWrap 165 | DHTPK LongTermKeyWrap
166 deriving Show 166 deriving Show