diff options
author | joe <joe@jerkface.net> | 2018-06-09 00:31:09 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-09 00:31:09 -0400 |
commit | cb6bf999a6a2fcafa5ebfa4a26a5154d04bbe8d7 (patch) | |
tree | b433638b4d344e4e3907c45eae8138b425576513 /src/Network | |
parent | 2625c8b7a66c0245d1eacbe0076f04df6ae8acd8 (diff) |
Updated error messages referring to non-extant functions.
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/Tox.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 5bd23da8..634b0db1 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -490,13 +490,13 @@ forkTox tox = do | |||
490 | , bootstrap (DHT.refresher6 $ toxRouting tox) | 490 | , bootstrap (DHT.refresher6 $ toxRouting tox) |
491 | ) | 491 | ) |
492 | 492 | ||
493 | -- TODO: Don't export this. | 493 | -- TODO: Don't export this. The exported interface is 'toxAnnounceToLan'. |
494 | announceToLan :: Socket -> NodeId -> IO () | 494 | announceToLan :: Socket -> NodeId -> IO () |
495 | announceToLan sock nid = do | 495 | announceToLan sock nid = do |
496 | addrs <- broadcastAddrs | 496 | addrs <- broadcastAddrs |
497 | forM_ addrs $ \addr -> do | 497 | forM_ addrs $ \addr -> do |
498 | (broadcast_info:_) <- getAddrInfo (Just defaultHints { addrFlags = [AI_NUMERICHOST], addrSocketType = Datagram }) | 498 | (broadcast_info:_) <- getAddrInfo (Just defaultHints { addrFlags = [AI_NUMERICHOST], addrSocketType = Datagram }) |
499 | (Just addr) -- TODO: Detect broadcast address. | 499 | (Just addr) |
500 | (Just "33445") | 500 | (Just "33445") |
501 | let broadcast = addrAddress broadcast_info | 501 | let broadcast = addrAddress broadcast_info |
502 | bs = S.runPut $ DHT.putMessage (DHT.DHTLanDiscovery nid) | 502 | bs = S.runPut $ DHT.putMessage (DHT.DHTLanDiscovery nid) |