Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
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).
|
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 |
ProtobufConnection<MessageType extends com.google.protobuf.MessageLite>
|
Modifier and Type | Method and Description |
---|---|
StreamConnection |
StreamConnectionFactory.getNewConnection(InetAddress inetAddress,
int port)
Returns a new handler or null to have the connection close.
|
Modifier and Type | Method and Description |
---|---|
ListenableFuture<SocketAddress> |
ClientConnectionManager.openConnection(SocketAddress serverAddress,
StreamConnection connection)
Creates a new connection to the given address, with the given connection used to handle incoming data.
|
ListenableFuture<SocketAddress> |
NioClientManager.openConnection(SocketAddress serverAddress,
StreamConnection connection) |
ListenableFuture<SocketAddress> |
BlockingClientManager.openConnection(SocketAddress serverAddress,
StreamConnection connection) |
static void |
BlockingClient.runReadLoop(InputStream stream,
StreamConnection connection)
A blocking call that never returns, except by throwing an exception.
|
Constructor and Description |
---|
BlockingClient(SocketAddress serverAddress,
StreamConnection connection,
int connectTimeoutMillis,
SocketFactory socketFactory,
Set<BlockingClient> clientSet)
Creates a new client to the given server address using the given
StreamConnection to decode the data. |
NioClient(SocketAddress serverAddress,
StreamConnection parser,
int connectTimeoutMillis)
Creates a new client to the given server address using the given
StreamConnection to decode the data. |
Copyright © 2016. All rights reserved.