java.lang.Object
com.biglybt.core.peermanager.messaging.bittorrent.BTMessageDecoder
com.biglybt.core.peermanager.messaging.bittorrent.ltep.LTMessageDecoder
All Implemented Interfaces:
MessageStreamDecoder

public class LTMessageDecoder extends BTMessageDecoder
  • Field Details

    • default_entension_handlers

      private static final CopyOnWriteMap<Byte,byte[]> default_entension_handlers
    • extension_handlers

      private final CopyOnWriteMap<Byte,byte[]> 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

      protected Message createMessage(DirectByteBuffer ref_buff) throws MessageException
      Overrides:
      createMessage in class BTMessageDecoder
      Throws:
      MessageException
    • addExtensionHandler

      public void addExtensionHandler(byte id, byte[] message_id)
    • removeExtensionHandler

      public void removeExtensionHandler(byte id)