Package org.bitcoinj.net.discovery
Class DnsDiscovery.DnsSeedDiscovery
java.lang.Object
org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
- All Implemented Interfaces:
PeerDiscovery
- Enclosing class:
- DnsDiscovery
Implements discovery from a single DNS host.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DnsSeedDiscovery
-
-
Method Details
-
getPeers
public List<InetSocketAddress> getPeers(long services, long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException Description copied from interface:PeerDiscoveryQueries the addresses. This method may block.- Specified by:
getPeersin interfacePeerDiscovery- Parameters:
services- Required services as a bitmask, e.g.VersionMessage.NODE_NETWORK.- Throws:
PeerDiscoveryException
-
shutdown
public void shutdown()Description copied from interface:PeerDiscoveryStops any discovery in progress when we want to shut down quickly.- Specified by:
shutdownin interfacePeerDiscovery
-
toString
-