Interface BTMessage
-
- All Superinterfaces:
Message
- All Known Implementing Classes:
BTAllowedFast
,BTBitfield
,BTCancel
,BTChoke
,BTDHTPort
,BTHandshake
,BTHashes
,BTHashReject
,BTHashRequest
,BTHave
,BTHaveAll
,BTHaveNone
,BTInterested
,BTKeepAlive
,BTLTMessage
,BTPiece
,BTRawMessage
,BTRejectRequest
,BTRequest
,BTSuggestPiece
,BTUnchoke
,BTUninterested
public interface BTMessage extends Message
A bittorrent peer protocol message.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BT_FEATURE_ID
static java.lang.String
ID_BT_ALLOWED_FAST
static byte[]
ID_BT_ALLOWED_FAST_BYTES
static java.lang.String
ID_BT_BITFIELD
static byte[]
ID_BT_BITFIELD_BYTES
static java.lang.String
ID_BT_CANCEL
static byte[]
ID_BT_CANCEL_BYTES
static java.lang.String
ID_BT_CHOKE
static byte[]
ID_BT_CHOKE_BYTES
static java.lang.String
ID_BT_DHT_PORT
static byte[]
ID_BT_DHT_PORT_BYTES
static java.lang.String
ID_BT_HANDSHAKE
static byte[]
ID_BT_HANDSHAKE_BYTES
static java.lang.String
ID_BT_HASH_REJECT
static byte[]
ID_BT_HASH_REJECT_BYTES
static java.lang.String
ID_BT_HASH_REQUEST
static byte[]
ID_BT_HASH_REQUEST_BYTES
static java.lang.String
ID_BT_HASHES
static byte[]
ID_BT_HASHES_BYTES
static java.lang.String
ID_BT_HAVE
static java.lang.String
ID_BT_HAVE_ALL
static byte[]
ID_BT_HAVE_ALL_BYTES
static byte[]
ID_BT_HAVE_BYTES
static java.lang.String
ID_BT_HAVE_NONE
static byte[]
ID_BT_HAVE_NONE_BYTES
static java.lang.String
ID_BT_INTERESTED
static byte[]
ID_BT_INTERESTED_BYTES
static java.lang.String
ID_BT_KEEP_ALIVE
static byte[]
ID_BT_KEEP_ALIVE_BYTES
static java.lang.String
ID_BT_LT_EXT_MESSAGE
static byte[]
ID_BT_LT_EXT_MESSAGE_BYTES
static java.lang.String
ID_BT_PIECE
static byte[]
ID_BT_PIECE_BYTES
static java.lang.String
ID_BT_REJECT_REQUEST
static byte[]
ID_BT_REJECT_REQUEST_BYTES
static java.lang.String
ID_BT_REQUEST
static byte[]
ID_BT_REQUEST_BYTES
static java.lang.String
ID_BT_SUGGEST_PIECE
static byte[]
ID_BT_SUGGEST_PIECE_BYTES
static java.lang.String
ID_BT_UNCHOKE
static byte[]
ID_BT_UNCHOKE_BYTES
static java.lang.String
ID_BT_UNINTERESTED
static byte[]
ID_BT_UNINTERESTED_BYTES
static int
SUBID_BT_ALLOWED_FAST
static int
SUBID_BT_BITFIELD
static int
SUBID_BT_CANCEL
static int
SUBID_BT_CHOKE
static int
SUBID_BT_DHT_PORT
static int
SUBID_BT_HANDSHAKE
static int
SUBID_BT_HASH_REJECT
static int
SUBID_BT_HASH_REQUEST
static int
SUBID_BT_HASHES
static int
SUBID_BT_HAVE
static int
SUBID_BT_HAVE_ALL
static int
SUBID_BT_HAVE_NONE
static int
SUBID_BT_INTERESTED
static int
SUBID_BT_KEEP_ALIVE
static int
SUBID_BT_LT_EXT_MESSAGE
static int
SUBID_BT_PIECE
static int
SUBID_BT_REJECT_REQUEST
static int
SUBID_BT_REQUEST
static int
SUBID_BT_SUGGEST_PIECE
static int
SUBID_BT_UNCHOKE
static int
SUBID_BT_UNINTERESTED
static int
SUBID_MAX
-
Fields inherited from interface com.biglybt.core.peermanager.messaging.Message
TYPE_DATA_PAYLOAD, TYPE_PROTOCOL_PAYLOAD
-
-
Method Summary
-
Methods inherited from interface com.biglybt.core.peermanager.messaging.Message
deserialize, destroy, getData, getDescription, getFeatureID, getFeatureSubID, getID, getIDBytes, getType, getVersion
-
-
-
-
Field Detail
-
BT_FEATURE_ID
static final java.lang.String BT_FEATURE_ID
- See Also:
- Constant Field Values
-
ID_BT_CHOKE
static final java.lang.String ID_BT_CHOKE
- See Also:
- Constant Field Values
-
ID_BT_CHOKE_BYTES
static final byte[] ID_BT_CHOKE_BYTES
-
SUBID_BT_CHOKE
static final int SUBID_BT_CHOKE
- See Also:
- Constant Field Values
-
ID_BT_UNCHOKE
static final java.lang.String ID_BT_UNCHOKE
- See Also:
- Constant Field Values
-
ID_BT_UNCHOKE_BYTES
static final byte[] ID_BT_UNCHOKE_BYTES
-
SUBID_BT_UNCHOKE
static final int SUBID_BT_UNCHOKE
- See Also:
- Constant Field Values
-
ID_BT_INTERESTED
static final java.lang.String ID_BT_INTERESTED
- See Also:
- Constant Field Values
-
ID_BT_INTERESTED_BYTES
static final byte[] ID_BT_INTERESTED_BYTES
-
SUBID_BT_INTERESTED
static final int SUBID_BT_INTERESTED
- See Also:
- Constant Field Values
-
ID_BT_UNINTERESTED
static final java.lang.String ID_BT_UNINTERESTED
- See Also:
- Constant Field Values
-
ID_BT_UNINTERESTED_BYTES
static final byte[] ID_BT_UNINTERESTED_BYTES
-
SUBID_BT_UNINTERESTED
static final int SUBID_BT_UNINTERESTED
- See Also:
- Constant Field Values
-
ID_BT_HAVE
static final java.lang.String ID_BT_HAVE
- See Also:
- Constant Field Values
-
ID_BT_HAVE_BYTES
static final byte[] ID_BT_HAVE_BYTES
-
SUBID_BT_HAVE
static final int SUBID_BT_HAVE
- See Also:
- Constant Field Values
-
ID_BT_BITFIELD
static final java.lang.String ID_BT_BITFIELD
- See Also:
- Constant Field Values
-
ID_BT_BITFIELD_BYTES
static final byte[] ID_BT_BITFIELD_BYTES
-
SUBID_BT_BITFIELD
static final int SUBID_BT_BITFIELD
- See Also:
- Constant Field Values
-
ID_BT_REQUEST
static final java.lang.String ID_BT_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_REQUEST_BYTES
static final byte[] ID_BT_REQUEST_BYTES
-
SUBID_BT_REQUEST
static final int SUBID_BT_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_PIECE
static final java.lang.String ID_BT_PIECE
- See Also:
- Constant Field Values
-
ID_BT_PIECE_BYTES
static final byte[] ID_BT_PIECE_BYTES
-
SUBID_BT_PIECE
static final int SUBID_BT_PIECE
- See Also:
- Constant Field Values
-
ID_BT_CANCEL
static final java.lang.String ID_BT_CANCEL
- See Also:
- Constant Field Values
-
ID_BT_CANCEL_BYTES
static final byte[] ID_BT_CANCEL_BYTES
-
SUBID_BT_CANCEL
static final int SUBID_BT_CANCEL
- See Also:
- Constant Field Values
-
ID_BT_DHT_PORT
static final java.lang.String ID_BT_DHT_PORT
- See Also:
- Constant Field Values
-
ID_BT_DHT_PORT_BYTES
static final byte[] ID_BT_DHT_PORT_BYTES
-
SUBID_BT_DHT_PORT
static final int SUBID_BT_DHT_PORT
- See Also:
- Constant Field Values
-
ID_BT_HANDSHAKE
static final java.lang.String ID_BT_HANDSHAKE
- See Also:
- Constant Field Values
-
ID_BT_HANDSHAKE_BYTES
static final byte[] ID_BT_HANDSHAKE_BYTES
-
SUBID_BT_HANDSHAKE
static final int SUBID_BT_HANDSHAKE
- See Also:
- Constant Field Values
-
ID_BT_KEEP_ALIVE
static final java.lang.String ID_BT_KEEP_ALIVE
- See Also:
- Constant Field Values
-
ID_BT_KEEP_ALIVE_BYTES
static final byte[] ID_BT_KEEP_ALIVE_BYTES
-
SUBID_BT_KEEP_ALIVE
static final int SUBID_BT_KEEP_ALIVE
- See Also:
- Constant Field Values
-
ID_BT_SUGGEST_PIECE
static final java.lang.String ID_BT_SUGGEST_PIECE
- See Also:
- Constant Field Values
-
ID_BT_SUGGEST_PIECE_BYTES
static final byte[] ID_BT_SUGGEST_PIECE_BYTES
-
SUBID_BT_SUGGEST_PIECE
static final int SUBID_BT_SUGGEST_PIECE
- See Also:
- Constant Field Values
-
ID_BT_HAVE_ALL
static final java.lang.String ID_BT_HAVE_ALL
- See Also:
- Constant Field Values
-
ID_BT_HAVE_ALL_BYTES
static final byte[] ID_BT_HAVE_ALL_BYTES
-
SUBID_BT_HAVE_ALL
static final int SUBID_BT_HAVE_ALL
- See Also:
- Constant Field Values
-
ID_BT_HAVE_NONE
static final java.lang.String ID_BT_HAVE_NONE
- See Also:
- Constant Field Values
-
ID_BT_HAVE_NONE_BYTES
static final byte[] ID_BT_HAVE_NONE_BYTES
-
SUBID_BT_HAVE_NONE
static final int SUBID_BT_HAVE_NONE
- See Also:
- Constant Field Values
-
ID_BT_REJECT_REQUEST
static final java.lang.String ID_BT_REJECT_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_REJECT_REQUEST_BYTES
static final byte[] ID_BT_REJECT_REQUEST_BYTES
-
SUBID_BT_REJECT_REQUEST
static final int SUBID_BT_REJECT_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_ALLOWED_FAST
static final java.lang.String ID_BT_ALLOWED_FAST
- See Also:
- Constant Field Values
-
ID_BT_ALLOWED_FAST_BYTES
static final byte[] ID_BT_ALLOWED_FAST_BYTES
-
SUBID_BT_ALLOWED_FAST
static final int SUBID_BT_ALLOWED_FAST
- See Also:
- Constant Field Values
-
ID_BT_LT_EXT_MESSAGE
static final java.lang.String ID_BT_LT_EXT_MESSAGE
- See Also:
- Constant Field Values
-
ID_BT_LT_EXT_MESSAGE_BYTES
static final byte[] ID_BT_LT_EXT_MESSAGE_BYTES
-
SUBID_BT_LT_EXT_MESSAGE
static final int SUBID_BT_LT_EXT_MESSAGE
- See Also:
- Constant Field Values
-
ID_BT_HASH_REQUEST
static final java.lang.String ID_BT_HASH_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_HASH_REQUEST_BYTES
static final byte[] ID_BT_HASH_REQUEST_BYTES
-
SUBID_BT_HASH_REQUEST
static final int SUBID_BT_HASH_REQUEST
- See Also:
- Constant Field Values
-
ID_BT_HASHES
static final java.lang.String ID_BT_HASHES
- See Also:
- Constant Field Values
-
ID_BT_HASHES_BYTES
static final byte[] ID_BT_HASHES_BYTES
-
SUBID_BT_HASHES
static final int SUBID_BT_HASHES
- See Also:
- Constant Field Values
-
ID_BT_HASH_REJECT
static final java.lang.String ID_BT_HASH_REJECT
- See Also:
- Constant Field Values
-
ID_BT_HASH_REJECT_BYTES
static final byte[] ID_BT_HASH_REJECT_BYTES
-
SUBID_BT_HASH_REJECT
static final int SUBID_BT_HASH_REJECT
- See Also:
- Constant Field Values
-
SUBID_MAX
static final int SUBID_MAX
- See Also:
- Constant Field Values
-
-