Class LTMessageDecoder
java.lang.Object
com.biglybt.core.peermanager.messaging.bittorrent.BTMessageDecoder
com.biglybt.core.peermanager.messaging.bittorrent.ltep.LTMessageDecoder
- All Implemented Interfaces:
MessageStreamDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final CopyOnWriteMap<Byte, byte[]> private final CopyOnWriteMap<Byte, byte[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultExtensionHandler(long id, byte[] message_id) voidaddExtensionHandler(byte id, byte[] message_id) protected MessagecreateMessage(DirectByteBuffer ref_buff) static voidremoveDefaultExtensionHandler(long id) voidremoveExtensionHandler(byte id) Methods inherited from class BTMessageDecoder
destroy, getCurrentMessageProgress, getDataBytesDecoded, getProtocolBytesDecoded, pauseDecoding, performStreamDecode, removeDecodedMessages, resumeDecoding
-
Field Details
-
default_entension_handlers
-
extension_handlers
-
-
Constructor Details
-
LTMessageDecoder
public LTMessageDecoder()
-
-
Method Details
-
addDefaultExtensionHandler
public static void addDefaultExtensionHandler(long id, byte[] message_id) -
removeDefaultExtensionHandler
public static void removeDefaultExtensionHandler(long id) -
createMessage
- Overrides:
createMessagein classBTMessageDecoder- Throws:
MessageException
-
addExtensionHandler
public void addExtensionHandler(byte id, byte[] message_id) -
removeExtensionHandler
public void removeExtensionHandler(byte id)
-