FileDocCategorySizeDatePackage
BTMessageEncoder.javaAPI DocAzureus 3.0.3.41592Fri Feb 16 16:30:44 GMT 2007com.aelitis.azureus.core.peermanager.messaging.bittorrent

BTMessageEncoder

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

Fields Summary
Constructors Summary
public BTMessageEncoder()

    /*nothing*/
  
Methods Summary
public com.aelitis.azureus.core.networkmanager.RawMessage[]encodeMessage(Message message)

    return new RawMessage[]{ BTMessageFactory.createBTRawMessage( message )};