Discover local peers using the provided PeerDiscovery DiscoveryMethod. Returns
dictionary keyed on peer network identifier. IMPORTANT NOTE: For IP networks we strongly recommend using the UDP
broadcast discovery method.
Namespace: NetworkCommsDotNet.ToolsAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- discoveryMethod
- Type: NetworkCommsDotNet.Tools PeerDiscovery DiscoveryMethod
The PeerDiscovery DiscoveryMethod to use for discovering peers.
- discoverTimeMS
- Type: System Int32
The wait time, after all requests have been made, in milliseconds before all discovered peers are returned.
Return Value
Type: Dictionary ShortGuid, Dictionary ConnectionType, List EndPoint[Missing <returns> documentation for "M:NetworkCommsDotNet.Tools.PeerDiscovery.DiscoverPeers(NetworkCommsDotNet.Tools.PeerDiscovery.DiscoveryMethod,System.Int32)"]
See Also