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
Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultHosts string[]

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

DnsDiscovery() public méthode

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.
Résultat System

GetPeers() public méthode

public GetPeers ( ) : IEnumerable
Résultat IEnumerable

Property Details

DefaultHosts public_oe static_oe property

public static string[] DefaultHosts
Résultat string[]