|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.plugins.messaging.bittorrent.BTMessageManager
public class BTMessageManager
Field Summary | |
---|---|
static String |
ID_BTMESSAGE_CANCEL
|
static String |
ID_BTMESSAGE_PIECE
|
static String |
ID_BTMESSAGE_REQUEST
|
static String |
ID_BTMESSAGE_UNCHOKE
|
Constructor Summary | |
---|---|
BTMessageManager()
|
Method Summary | |
---|---|
static Message |
createCoreBTCancel(int piece_number,
int piece_offset,
int length)
Create a core BT Cancel message instance. |
static BTMessageCancel |
createCoreBTCancelAdaptation(Message core_made_message)
Translate the given core-made BT Cancel message into a specific plugin message adaptation. |
static Message |
createCoreBTPiece(int piece_number,
int piece_offset,
ByteBuffer data)
Create a core BT Piece message instance. |
static BTMessagePiece |
createCoreBTPieceAdaptation(Message core_made_message)
Translate the given core-made BT Piece message into a specific plugin message adaptation. |
static Message |
createCoreBTRequest(int piece_number,
int piece_offset,
int length)
Create a core BT Request message instance. |
static BTMessageRequest |
createCoreBTRequestAdaptation(Message core_made_message)
Translate the given core-made BT Request message into a specific plugin message adaptation. |
static MessageAdapter |
wrapCoreMessage(BTMessage core_msg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID_BTMESSAGE_REQUEST
public static final String ID_BTMESSAGE_CANCEL
public static final String ID_BTMESSAGE_PIECE
public static final String ID_BTMESSAGE_UNCHOKE
Constructor Detail |
---|
public BTMessageManager()
Method Detail |
---|
public static BTMessageRequest createCoreBTRequestAdaptation(Message core_made_message)
core_made_message
- to translate
public static BTMessageCancel createCoreBTCancelAdaptation(Message core_made_message)
core_made_message
- to translate
public static BTMessagePiece createCoreBTPieceAdaptation(Message core_made_message)
core_made_message
- to translate
public static MessageAdapter wrapCoreMessage(BTMessage core_msg)
public static Message createCoreBTRequest(int piece_number, int piece_offset, int length)
piece_number
- piece_offset
- length
-
public static Message createCoreBTCancel(int piece_number, int piece_offset, int length)
piece_number
- piece_offset
- length
-
public static Message createCoreBTPiece(int piece_number, int piece_offset, ByteBuffer data)
piece_number
- piece_offset
- data
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |