FileDocCategorySizeDatePackage
BTInterested.javaAPI DocAzureus 3.0.3.42377Sun Mar 04 21:08:16 GMT 2007com.aelitis.azureus.core.peermanager.messaging.bittorrent

BTInterested

public class BTInterested extends Object implements BTMessage
BitTorrent interested message.

Fields Summary
private byte
version
Constructors Summary
public BTInterested(byte _version)

    version = _version;
  
Methods Summary
public com.aelitis.azureus.core.peermanager.messaging.Messagedeserialize(DirectByteBuffer data, byte version)

    if( data != null && data.hasRemaining( DirectByteBuffer.SS_MSG ) ) {
      throw new MessageException( "[" +getID() +"] decode error: payload not empty" );
    }
    
    if( data != null )  data.returnToPool();
    
    return new BTInterested(version);
  
public voiddestroy()

  /*nothing*/  
public DirectByteBuffer[]getData()

  return new DirectByteBuffer[] {};  
public java.lang.StringgetDescription()

  return BTMessage.ID_BT_INTERESTED;  
public java.lang.StringgetFeatureID()

  return BTMessage.BT_FEATURE_ID;  
public intgetFeatureSubID()

  return BTMessage.SUBID_BT_INTERESTED;  
public java.lang.StringgetID()

  return BTMessage.ID_BT_INTERESTED;  
public byte[]getIDBytes()

  return BTMessage.ID_BT_INTERESTED_BYTES;  
public intgetType()

  return Message.TYPE_PROTOCOL_PAYLOAD;  
public bytegetVersion()

 return version;