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 |
Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for
using SOCKS proxies, Tor, SSL etc).
|
org.bitcoinj.testing |
Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
bitcoinj.
|
Modifier and Type | Class and Description |
---|---|
class |
Peer
A Peer handles the high level communication with a Bitcoin node, extending a
PeerSocketHandler which
handles low-level message (de)serialization. |
class |
PeerSocketHandler
Handles high-level message (de)serialization for peers, acting as the bridge between the
org.bitcoinj.net classes and Peer . |
Modifier and Type | Class and Description |
---|---|
class |
ProtobufParser<MessageType extends com.google.protobuf.MessageLite>
|
Modifier and Type | Method and Description |
---|---|
StreamParser |
StreamParserFactory.getNewParser(InetAddress inetAddress,
int port)
Returns a new handler or null to have the connection close.
|
Modifier and Type | Method and Description |
---|---|
void |
NioClientManager.openConnection(SocketAddress serverAddress,
StreamParser parser) |
void |
ClientConnectionManager.openConnection(SocketAddress serverAddress,
StreamParser parser)
Creates a new connection to the given address, with the given parser used to handle incoming data.
|
void |
BlockingClientManager.openConnection(SocketAddress serverAddress,
StreamParser parser) |
Constructor and Description |
---|
BlockingClient(SocketAddress serverAddress,
StreamParser parser,
int connectTimeoutMillis,
SocketFactory socketFactory,
Set<BlockingClient> clientSet)
Creates a new client to the given server address using the given
StreamParser to decode the data. |
NioClient(SocketAddress serverAddress,
StreamParser parser,
int connectTimeoutMillis)
Creates a new client to the given server address using the given
StreamParser to decode the data. |
Modifier and Type | Class and Description |
---|---|
class |
InboundMessageQueuer
An extension of
PeerSocketHandler that keeps inbound messages in a queue for later processing |
Copyright © 2014. All rights reserved.