diff options
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 3 |
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 | ||
69 | import Announcer | 69 | import Announcer |
70 | import Announcer.Tox | ||
70 | import ToxManager | 71 | import ToxManager |
71 | import Crypto.Tox -- (zeros32,SecretKey,PublicKey, generateSecretKey, toPublic, encodeSecret, decodeSecret, userKeys) | 72 | import Crypto.Tox -- (zeros32,SecretKey,PublicKey, generateSecretKey, toPublic, encodeSecret, decodeSecret, userKeys) |
72 | import Network.UPNP as UPNP | 73 | import 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 |