diff options
Diffstat (limited to 'avahi.hs')
-rw-r--r-- | avahi.hs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,6 +9,8 @@ exampleNodeId = read $ replicate 43 'a' | |||
9 | main :: IO () | 9 | main :: IO () |
10 | main = do | 10 | main = 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 |