jBittorrentAPI
Class PeerProtocol

java.lang.Object
  extended by jBittorrentAPI.PeerProtocol

public class PeerProtocol
extends java.lang.Object

Constants used in Peer Protocol.


Field Summary
static int BITFIELD
           
static int BLOCK_SIZE
           
static byte[] BLOCK_SIZE_BYTES
           
static int CANCEL
           
static int CHOKE
           
static int HANDSHAKE
           
static int HAVE
           
static int INTERESTED
           
static int KEEP_ALIVE
           
static int NOT_INTERESTED
           
static int PIECE
           
static int PORT
           
static int REQUEST
           
static java.lang.String[] TYPE
           
static int UNCHOKE
           
 
Constructor Summary
PeerProtocol()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BITFIELD

public static final int BITFIELD
See Also:
Constant Field Values

BLOCK_SIZE

public static final int BLOCK_SIZE
See Also:
Constant Field Values

BLOCK_SIZE_BYTES

public static final byte[] BLOCK_SIZE_BYTES

CANCEL

public static final int CANCEL
See Also:
Constant Field Values

CHOKE

public static final int CHOKE
See Also:
Constant Field Values

HANDSHAKE

public static final int HANDSHAKE
See Also:
Constant Field Values

HAVE

public static final int HAVE
See Also:
Constant Field Values

INTERESTED

public static final int INTERESTED
See Also:
Constant Field Values

KEEP_ALIVE

public static final int KEEP_ALIVE
See Also:
Constant Field Values

NOT_INTERESTED

public static final int NOT_INTERESTED
See Also:
Constant Field Values

PIECE

public static final int PIECE
See Also:
Constant Field Values

PORT

public static final int PORT
See Also:
Constant Field Values

REQUEST

public static final int REQUEST
See Also:
Constant Field Values

TYPE

public static final java.lang.String[] TYPE

UNCHOKE

public static final int UNCHOKE
See Also:
Constant Field Values
Constructor Detail

PeerProtocol

public PeerProtocol()