@@ -135,8 +135,9 @@ import Control.Distributed.Process.Backend.SimpleLocalnet.Internal.Multicast (in
135data Backend = Backend {
135data Backend = Backend {
136 -- | Create a new local node
136 -- | Create a new local node
137 newLocalNode :: IO Node.LocalNode
137 newLocalNode :: IO Node.LocalNode
138− -- | @findPeers t@ sends out a /who's there?/ request, waits 't' msec,
138+ -- | @findPeers t@ broadcasts a /who's there?/ message on the local
139− -- and then collects and returns the answers
139+ -- network, waits 't' msec, and then collects and returns the answers.
140+ -- You can use this to dynamically discover peer nodes.
140 , findPeers :: Int -> IO [NodeId]
141 , findPeers :: Int -> IO [NodeId]
141 -- | Make sure that all log messages are printed by the logger on the
142 -- | Make sure that all log messages are printed by the logger on the
142 -- current node
143 -- current node