summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-18 00:49:38 -0400
committerjoe <joe@jerkface.net>2018-06-18 00:49:38 -0400
commit07b1494c9d5c692371c9689a8f78f4cf7ee58732 (patch)
treeaac158efc14bdb210717018704c43f2542804bf8 /examples/dhtd.hs
parent6de7e6d299254010ebe2fd3fc5fb7c7fd6c89fc6 (diff)
Tox: Added timestamps to dhtkey and sockaddr information.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index ac78d552..91fabc27 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -860,7 +860,8 @@ clientSession s@Session{..} sock cnum h = do
860 case HashMap.lookup (Tox.key2id mypubkey) acsmap of 860 case HashMap.lookup (Tox.key2id mypubkey) acsmap of
861 Nothing -> hPutClient h "Unable to find account for selected key" 861 Nothing -> hPutClient h "Unable to find account for selected key"
862 Just account -> do 862 Just account -> do
863 atomically $ setContactAddr their_pub their_addr account 863 now <- getPOSIXTime
864 atomically $ setContactAddr now their_pub their_addr account
864 Tox.netCrypto tox sec their_pub 865 Tox.netCrypto tox sec their_pub
865 hPutClient h "Handshake sent" 866 hPutClient h "Handshake sent"
866 goTarget (Right their_pub) = do 867 goTarget (Right their_pub) = do