summaryrefslogtreecommitdiff
path: root/avahi.hs
diff options
context:
space:
mode:
Diffstat (limited to 'avahi.hs')
-rw-r--r--avahi.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/avahi.hs b/avahi.hs
index aeb8138f..e5567875 100644
--- a/avahi.hs
+++ b/avahi.hs
@@ -9,6 +9,8 @@ exampleNodeId = read $ replicate 43 'a'
9main :: IO () 9main :: IO ()
10main = do 10main = do
11 [hostname, port, nodeId] <- getArgs 11 [hostname, port, nodeId] <- getArgs
12 void $ forkIO $ announceToxServiceWithHostname hostname (fromMaybe 54321 $ readMaybe port) (fromMaybe exampleNodeId $ readMaybe nodeId) 12 void $ forkIO $ announceToxServiceWithHostname
13 void $ forkIO $ queryToxService print 13 hostname (fromMaybe 54321 $ readMaybe port)
14 (fromMaybe exampleNodeId $ readMaybe nodeId) Nothing
15 void $ forkIO $ queryToxService (curry print)
14 void $ getLine 16 void $ getLine