| Package | Description |
|---|---|
| org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction, peer connectivity via PeerGroup,
block chain management and the Wallet class. |
| org.bitcoinj.net.discovery |
Classes that know how to discover peers in the P2P network using DNS, IRC or DNS via Tor (orchid).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PeerGroup.connectToAnyPeer()
Picks a peer from discovery and connects to it.
|
protected void |
PeerGroup.discoverPeers() |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
SeedPeers.getPeer()
Acts as an iterator, returning the address of each node in the list sequentially.
|
InetSocketAddress[] |
TorDiscovery.getPeers(long timeoutValue,
TimeUnit timeoutUnit) |
InetSocketAddress[] |
SeedPeers.getPeers(long timeoutValue,
TimeUnit timeoutUnit)
Returns an array containing all the Bitcoin nodes within the list.
|
InetSocketAddress[] |
PeerDiscovery.getPeers(long timeoutValue,
TimeUnit timeoutUnit)
Returns an array of addresses.
|
InetSocketAddress[] |
IrcDiscovery.getPeers(long timeoutValue,
TimeUnit timeoutUnit)
Deprecated.
Returns a list of peers that were found in the IRC channel.
|
InetSocketAddress[] |
DnsDiscovery.getPeers(long timeoutValue,
TimeUnit timeoutUnit) |
Copyright © 2014. All rights reserved.