summaryrefslogtreecommitdiff
path: root/avahi.hs
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-06-09 03:33:04 -0400
committerAndrew Cady <d@jerkface.net>2018-06-09 03:36:05 -0400
commitbc691bafe6d03eb5d2c73d2c7ff0248422d45c62 (patch)
tree694c38bace4205b91ff25bff9a44a0636c408066 /avahi.hs
parent626820b99b76b4e4fa0b36e8e92e05d8176c4f43 (diff)
integrate avahi publish & discovery
Diffstat (limited to 'avahi.hs')
-rw-r--r--avahi.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi.hs b/avahi.hs
index 2db3be71..aeb8138f 100644
--- a/avahi.hs
+++ b/avahi.hs
@@ -9,6 +9,6 @@ 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 $ 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