PeerDiscovery MembersNetworkComms.Net Help
The PeerDiscovery type exposes the following members.
Methods

  NameDescription
Public methodStatic memberDisableDiscoverable 
Disable this peers discoverable status for all discovery methods.
Public methodStatic memberDisableDiscoverable(PeerDiscovery DiscoveryMethod)
Public methodStatic memberDiscoverPeers(PeerDiscovery DiscoveryMethod)
Discover local peers using the provided PeerDiscovery DiscoveryMethod and default discover time. Returns dictionary keyed on peer network identifier. IMPORTANT NOTE: For IP networks we strongly recommend using the UDP broadcast discovery method.
Public methodStatic memberDiscoverPeers(PeerDiscovery DiscoveryMethod, Int32)
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.
Public methodStatic memberDiscoverPeersAsync
Discover local peers using the provided PeerDiscovery DiscoveryMethod asynchronously. Makes a single async request for peers to announce. Ensure that you append to the OnPeerDiscovered event to handle discovered peers. IMPORTANT NOTE: For IP networks we strongly recommend using the UDP broadcast discovery method.
Public methodStatic memberEnableDiscoverable(PeerDiscovery DiscoveryMethod)
Make this peer discoverable using the provided PeerDiscovery DiscoveryMethod. Uses all suitable and allowed adaptors, e.g. for IP networks uses FilteredLocalAddresses . IMPORTANT NOTE: For IP networks we strongly recommend using the UDP broadcast discovery method.
Public methodStatic memberEnableDiscoverable(PeerDiscovery DiscoveryMethod, EndPoint)
Make this peer discoverable using the provided PeerDiscovery DiscoveryMethod. IMPORTANT NOTE: For IP networks we strongly recommend using the UDP broadcast discovery method.
Public methodStatic memberIsDiscoverable
Returns true if local discovery endPoints exist for the provided PeerDiscovery DiscoveryMethod.
Public methodStatic memberLocalDiscoveryEndPoints 
Returns the local endpoints that are currently used to make this peer discoverable.
Public methodStatic memberLocalDiscoveryEndPoints(PeerDiscovery DiscoveryMethod)
Returns the local endpoints that are currently used to make this peer discoverable using the provided PeerDiscovery DiscoveryMethod.
Back to Top
Properties

  NameDescription
Public propertyStatic memberBluetoothDiscoveryService
The service on which discovery will run for bluetooth. Default is '3a768eea-cbda-4926-a82d-831cb89092ac'.
Public propertyStatic memberDefaultDiscoverTimeMS
The wait time in milliseconds before all peers discovered are returned for synchronous discovery methods. Default 2000ms.
Public propertyStatic memberDefaultIPDiscoveryMethod
The default discovery method to use for IP type connections (UDP and TCP). By default this is DiscoveryMethod.UDPBroadcast.
Public propertyStatic memberMaxTargetLocalIPPort
The maximum port number that will be used when making this peer discoverable. Default 10020.
Public propertyStatic memberMinTargetLocalIPPort
The minimum port number that will be used when making this peer discoverable. Default 10000.
Back to Top
Events

  NameDescription
Public eventStatic memberOnPeerDiscovered
Event triggered when a peer is discovered.
Back to Top
See Also