public final class BlockInfo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockInfo.BlockState
This is the enum used for
state(). |
| Constructor and Description |
|---|
BlockInfo(block_info b) |
| Modifier and Type | Method and Description |
|---|---|
int |
blockSize()
The total number of bytes in this block.
|
int |
bytesProgress()
The number of bytes that have been received for this block.
|
int |
numPeers()
The number of peers that is currently requesting this block.
|
TcpEndpoint |
peer()
The peer is the ip address of the peer this block was downloaded from.
|
BlockInfo.BlockState |
state()
The state this block is in.
|
block_info |
swig() |
public BlockInfo(block_info b)
b - the native objectpublic block_info swig()
public TcpEndpoint peer()
public int bytesProgress()
public int blockSize()
public BlockInfo.BlockState state()
public int numPeers()