diff options
author | Andrew Cady <d@jerkface.net> | 2018-06-09 03:33:04 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-06-09 03:36:05 -0400 |
commit | bc691bafe6d03eb5d2c73d2c7ff0248422d45c62 (patch) | |
tree | 694c38bace4205b91ff25bff9a44a0636c408066 /avahi.hs | |
parent | 626820b99b76b4e4fa0b36e8e92e05d8176c4f43 (diff) |
integrate avahi publish & discovery
Diffstat (limited to 'avahi.hs')
-rw-r--r-- | avahi.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,6 +9,6 @@ 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 $ announceToxService hostname (fromMaybe 54321 $ readMaybe port) (fromMaybe exampleNodeId $ readMaybe nodeId) | 12 | void $ forkIO $ announceToxServiceWithHostname hostname (fromMaybe 54321 $ readMaybe port) (fromMaybe exampleNodeId $ readMaybe nodeId) |
13 | void $ queryToxService print | 13 | void $ forkIO $ queryToxService print |
14 | void $ getLine | 14 | void $ getLine |