summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2017-11-01 16:59:50 +0000
committerJames Crayne <jim.crayne@gmail.com>2017-11-01 16:59:50 +0000
commit1766abbd8e4072fa47a82c09daceeb4235f3564d (patch)
tree9bf2ae47af2a4cec249ae433f07956130b9c75ba /src/Network
parent6880807978615fe52a28a1ca85134e4df68b9ac4 (diff)
bring crypto-sessions state into scope
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Tox.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index f73de4e9..0400f14a 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -219,6 +219,7 @@ data Tox = Tox
219 , toxOnion :: Onion.Client RouteId 219 , toxOnion :: Onion.Client RouteId
220 , toxToRoute :: Transport String Onion.AnnouncedRendezvous (PublicKey,Onion.OnionData) 220 , toxToRoute :: Transport String Onion.AnnouncedRendezvous (PublicKey,Onion.OnionData)
221 , toxCrypto :: Transport String SockAddr NetCrypto 221 , toxCrypto :: Transport String SockAddr NetCrypto
222 , toxCryptoSessions :: NetCryptoSessions
222 , toxCryptoKeys :: TransportCrypto 223 , toxCryptoKeys :: TransportCrypto
223 , toxRouting :: DHT.Routing 224 , toxRouting :: DHT.Routing
224 , toxTokens :: TVar SessionTokens 225 , toxTokens :: TVar SessionTokens
@@ -319,6 +320,7 @@ newTox keydb addr mbSessionsState = do
319 , toxOnion = onionclient 320 , toxOnion = onionclient
320 , toxToRoute = onInbound (updateRoster roster) dtacrypt 321 , toxToRoute = onInbound (updateRoster roster) dtacrypt
321 , toxCrypto = addHandler (hPutStrLn stderr) (cryptoNetHandler sessionsState) cryptonet 322 , toxCrypto = addHandler (hPutStrLn stderr) (cryptoNetHandler sessionsState) cryptonet
323 , toxCryptoSessions = sessionsState
322 , toxCryptoKeys = crypto 324 , toxCryptoKeys = crypto
323 , toxRouting = routing 325 , toxRouting = routing
324 , toxTokens = toks 326 , toxTokens = toks