Class BTMessageEncoder

  • All Implemented Interfaces:
    MessageStreamEncoder

    public class BTMessageEncoder
    extends java.lang.Object
    implements MessageStreamEncoder
    Creates legacy (i.e. traditional BitTorrent wire protocol) raw messages. NOTE: wire format: [total message length] + [message id byte] + [payload bytes]
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RawMessage[] encodeMessage​(Message message)
      Encode the given message into the raw message output stream format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BTMessageEncoder

        public BTMessageEncoder()