C# Class BitSharper.Discovery.DnsDiscovery

Supports peer discovery through DNS.
This class does not support the testnet as currently there are no DNS servers providing testnet hosts. If this class is being used for testnet you must specify the hostnames to use.

Failure to resolve individual host names will not cause an Exception to be thrown. However, if all hosts passed fail to resolve a PeerDiscoveryException will be thrown during getPeers().

Inheritance: IPeerDiscovery
Exibir arquivo Open project: TangibleCryptography/BitSharper Class Usage Examples

Public Properties

Property Type Description
DefaultHosts string[]

Public Methods

Method Description
DnsDiscovery ( NetworkParameters netParams ) : System

Supports finding peers through DNS A records. Community run DNS entry points will be used.

DnsDiscovery ( string hostNames, NetworkParameters netParams ) : System

Supports finding peers through DNS A records.

GetPeers ( ) : IEnumerable

Method Details

DnsDiscovery() public method

Supports finding peers through DNS A records. Community run DNS entry points will be used.
public DnsDiscovery ( NetworkParameters netParams ) : System
netParams NetworkParameters Network parameters to be used for port information.
return System

DnsDiscovery() public method

Supports finding peers through DNS A records.
public DnsDiscovery ( string hostNames, NetworkParameters netParams ) : System
hostNames string Host names to be examined for seed addresses.
netParams NetworkParameters Network parameters to be used for port information.
return System

GetPeers() public method

public GetPeers ( ) : IEnumerable
return IEnumerable

Property Details

DefaultHosts public_oe static_oe property

public static string[] DefaultHosts
return string[]