com.google.bitcoin.core
Interface PeerDiscovery

All Known Implementing Classes:
DnsDiscovery, IrcDiscovery, SeedPeers

public interface PeerDiscovery

A PeerDiscovery object is responsible for finding addresses of other nodes in the BitCoin P2P network. Note that the addresses returned may or may not be accepting connections.


Method Summary
 InetSocketAddress[] getPeers()
          Returns an array of addresses.
 

Method Detail

getPeers

InetSocketAddress[] getPeers()
                             throws PeerDiscoveryException
Returns an array of addresses. This method may block.

Throws:
PeerDiscoveryException


Copyright © 2011. All Rights Reserved.