summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
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 28e9f261..ac78d552 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -67,6 +67,7 @@ import System.Posix.Signals
67 67
68 68
69import Announcer 69import Announcer
70import Announcer.Tox
70import ToxManager 71import ToxManager
71import Crypto.Tox -- (zeros32,SecretKey,PublicKey, generateSecretKey, toPublic, encodeSecret, decodeSecret, userKeys) 72import Crypto.Tox -- (zeros32,SecretKey,PublicKey, generateSecretKey, toPublic, encodeSecret, decodeSecret, userKeys)
72import Network.UPNP as UPNP 73import Network.UPNP as UPNP
@@ -1009,7 +1010,7 @@ clientSession s@Session{..} sock cnum h = do
1009 dhtQuery 1010 dhtQuery
1010 doit :: Char -> Announcer -> AnnounceKey -> AnnounceMethod r -> r -> IO () 1011 doit :: Char -> Announcer -> AnnounceKey -> AnnounceMethod r -> r -> IO ()
1011 doit '+' = schedule 1012 doit '+' = schedule
1012 doit '-' = cancel 1013 doit '-' = \a k _ _ -> cancel a k
1013 doit _ = \_ _ _ _ -> hPutClientChunk h "Starting(+) or canceling(-)?" 1014 doit _ = \_ _ _ _ -> hPutClientChunk h "Starting(+) or canceling(-)?"
1014 matchingResult :: 1015 matchingResult ::
1015 ( Typeable stok 1016 ( Typeable stok