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

BTChoke

public class BTChoke extends Object implements BTMessage
BitTorrent choke message.

Fields Summary
private byte
version
Constructors Summary
public BTChoke(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 [" +data.remaining(DirectByteBuffer.SS_MSG)+ "]" );
    }
    
    if( data != null )  data.returnToPool();
    
    return new BTChoke(version);
  
public voiddestroy()

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

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

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

  return BTMessage.BT_FEATURE_ID;  
public intgetFeatureSubID()

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

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

  return BTMessage.ID_BT_CHOKE_BYTES;  
public intgetType()

  return Message.TYPE_PROTOCOL_PAYLOAD;  
public bytegetVersion()

 return version;