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/NodeId.hs | |
parent | 8f541d5e4f81ad7766986c48e4296e4d4ec5788b (diff) |
atox: subProcess exe launch from dhtd netcrypto command
Diffstat (limited to 'src/Network/Tox/NodeId.hs')
-rw-r--r-- | src/Network/Tox/NodeId.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs index f9cf22a8..e3c6fb36 100644 --- a/src/Network/Tox/NodeId.hs +++ b/src/Network/Tox/NodeId.hs | |||
@@ -498,6 +498,12 @@ instance OnionPacket 3 where mkOnion = OnionResponse3 | |||
498 | data NoSpam = NoSpam !Word32 !(Maybe Word16) | 498 | data NoSpam = NoSpam !Word32 !(Maybe Word16) |
499 | deriving (Eq,Ord,Show) | 499 | deriving (Eq,Ord,Show) |
500 | 500 | ||
501 | instance Serialize NoSpam where | ||
502 | get = NoSpam <$> get <*> get | ||
503 | put (NoSpam w32 w16) = do | ||
504 | put w32 | ||
505 | put w16 | ||
506 | |||
501 | -- Utilizes Data.Serialize format for Word32 nospam and Word16 checksum. | 507 | -- Utilizes Data.Serialize format for Word32 nospam and Word16 checksum. |
502 | instance Read NoSpam where | 508 | instance Read NoSpam where |
503 | readsPrec d s = case break isSpace s of | 509 | readsPrec d s = case break isSpace s of |