The PeerDiscovery type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
| Name | Description | |
|---|---|---|
| DisableDiscoverable |
Disable this peers discoverable status for all discovery methods.
| |
| DisableDiscoverable(PeerDiscovery DiscoveryMethod) |
Disable this peers discoverable status for the provided PeerDiscovery DiscoveryMethod.
| |
| DiscoverPeers(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.
| |
| DiscoverPeers(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.
| |
| DiscoverPeersAsync |
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.
| |
| EnableDiscoverable(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.
| |
| EnableDiscoverable(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.
| |
| IsDiscoverable |
Returns true if local discovery endPoints exist for the provided PeerDiscovery DiscoveryMethod.
| |
| LocalDiscoveryEndPoints |
Returns the local endpoints that are currently used to make this peer discoverable.
| |
| LocalDiscoveryEndPoints(PeerDiscovery DiscoveryMethod) |
Returns the local endpoints that are currently used to make this peer discoverable using
the provided PeerDiscovery DiscoveryMethod.
|
Properties
| Name | Description | |
|---|---|---|
| BluetoothDiscoveryService |
The service on which discovery will run for bluetooth. Default is '3a768eea-cbda-4926-a82d-831cb89092ac'.
| |
| DefaultDiscoverTimeMS |
The wait time in milliseconds before all peers discovered are returned for synchronous discovery methods. Default 2000ms.
| |
| DefaultIPDiscoveryMethod |
The default discovery method to use for IP type connections (UDP and TCP). By default this is DiscoveryMethod.UDPBroadcast.
| |
| MaxTargetLocalIPPort |
The maximum port number that will be used when making this peer discoverable. Default 10020.
| |
| MinTargetLocalIPPort |
The minimum port number that will be used when making this peer discoverable. Default 10000.
|
Events
| Name | Description | |
|---|---|---|
| OnPeerDiscovered |
Event triggered when a peer is discovered.
|
See Also