summaryrefslogtreecommitdiff
path: root/src/Network/Tox/DHT/Transport.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-10-25 05:09:55 -0400
committerjoe <joe@jerkface.net>2017-10-25 05:09:55 -0400
commit44573e84be43e4396f4508edb3c04760b6bf8efc (patch)
tree7568d8c1c2c367604ba9da4d91aca773ff4647b1 /src/Network/Tox/DHT/Transport.hs
parentf0f355d6ff8a68b5240301f882f6d5a9a77fdba1 (diff)
Debugged encodeDataToRoute/parseDataToRoute.
Diffstat (limited to 'src/Network/Tox/DHT/Transport.hs')
-rw-r--r--src/Network/Tox/DHT/Transport.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Network/Tox/DHT/Transport.hs b/src/Network/Tox/DHT/Transport.hs
index 0787c2c1..47505a21 100644
--- a/src/Network/Tox/DHT/Transport.hs
+++ b/src/Network/Tox/DHT/Transport.hs
@@ -210,6 +210,8 @@ data DHTPublicKey = DHTPublicKey
210 , dhtpk :: PublicKey -- dht public key 210 , dhtpk :: PublicKey -- dht public key
211 , dhtpkNodes :: SendNodes -- other reachable nodes 211 , dhtpkNodes :: SendNodes -- other reachable nodes
212 } 212 }
213 deriving (Eq, Show)
214
213 215
214-- int8_t (0x20 sent over onion, 0x12 for sent over net_crypto) 216-- int8_t (0x20 sent over onion, 0x12 for sent over net_crypto)
215-- [uint32_t nospam][Message (UTF8) 1 to ONION_CLIENT_MAX_DATA_SIZE bytes] 217-- [uint32_t nospam][Message (UTF8) 1 to ONION_CLIENT_MAX_DATA_SIZE bytes]
@@ -217,6 +219,7 @@ data FriendRequest = FriendRequest
217 { friendNoSpam :: Word32 219 { friendNoSpam :: Word32
218 , friendRequestText :: ByteString -- UTF8 220 , friendRequestText :: ByteString -- UTF8
219 } 221 }
222 deriving (Eq, Show)
220 223
221-- When sent as a DHT request packet (this is the data sent in the DHT request 224-- When sent as a DHT request packet (this is the data sent in the DHT request
222-- packet): 225-- packet):