diff options
author | jim@bo <jim@bo> | 2018-06-23 05:54:30 -0400 |
---|---|---|
committer | jim@bo <jim@bo> | 2018-06-23 05:56:39 -0400 |
commit | 82b69f7729d964e88d21f73ae0ad5c8f7d0c9e50 (patch) | |
tree | 6d8fb6149adcaed8225a2d64cbf3bc8710aff985 /src/Network/Tox/Crypto/Handlers.hs | |
parent | 8f541d5e4f81ad7766986c48e4296e4d4ec5788b (diff) |
atox: subProcess exe launch from dhtd netcrypto command
Diffstat (limited to 'src/Network/Tox/Crypto/Handlers.hs')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index fabbf21d..d8ba19eb 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -241,6 +241,23 @@ data ViewSnapshot = ViewSnapshot | |||
241 | , vGroups :: Map.Map GroupChatId (Set.Set SockAddr) | 241 | , vGroups :: Map.Map GroupChatId (Set.Set SockAddr) |
242 | } | 242 | } |
243 | 243 | ||
244 | instance Serialize ViewSnapshot where | ||
245 | get = ViewSnapshot <$> get <*> get <*> get <*> get <*> get | ||
246 | <*> get <*> get <*> get <*> get <*> get <*> (pure Map.empty) | ||
247 | put (ViewSnapshot nick status statusmsg typing nospam | ||
248 | nick' status' statusmsg' typing' nospam' grps) | ||
249 | = do | ||
250 | put nick | ||
251 | put status | ||
252 | put statusmsg | ||
253 | put typing | ||
254 | put nospam | ||
255 | put nick' | ||
256 | put status' | ||
257 | put statusmsg' | ||
258 | put typing' | ||
259 | put nospam' | ||
260 | |||
244 | -- | Take snapshot of SessionView | 261 | -- | Take snapshot of SessionView |
245 | -- | 262 | -- |
246 | -- This is useful for storing the context of | 263 | -- This is useful for storing the context of |