C# 클래스 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().

상속: IPeerDiscovery
파일 보기 프로젝트 열기: TangibleCryptography/BitSharper 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultHosts string[]

공개 메소드들

메소드 설명
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

메소드 상세

DnsDiscovery() 공개 메소드

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.
리턴 System

DnsDiscovery() 공개 메소드

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.
리턴 System

GetPeers() 공개 메소드

public GetPeers ( ) : IEnumerable
리턴 IEnumerable

프로퍼티 상세

DefaultHosts 공개적으로 정적으로 프로퍼티

public static string[] DefaultHosts
리턴 string[]