| Package | Description |
|---|---|
| org.johnnei.javatorrent.torrent.peer |
| Modifier and Type | Method and Description |
|---|---|
static PeerDirection |
PeerDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerDirection[] |
PeerDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Peer.addBlockRequest(int pieceIndex,
int byteOffset,
int blockLength,
PeerDirection type)
Adds a download or upload job to the peer.
|
void |
Peer.cancelBlockRequest(int pieceIndex,
int byteOffset,
int blockLength,
PeerDirection type)
Removes the download or upload job from the peer.
|
int |
Peer.getWorkQueueSize(PeerDirection direction)
Gets the amount of pieces the client still needs to send
|
boolean |
Peer.isChoked(PeerDirection direction)
Checks if the client is choked.
|
boolean |
Peer.isInterested(PeerDirection direction)
Checks if the client is interested.
|
void |
Peer.setChoked(PeerDirection direction,
boolean choked)
Sets if this peer is choked or not.
|
void |
Peer.setInterested(PeerDirection direction,
boolean interested)
Sets if this peer is interested or not.
|
Copyright © 2016. All rights reserved.