jBittorrentAPI
Class Message

java.lang.Object
  extended by jBittorrentAPI.Message
Direct Known Subclasses:
Message_HS, Message_PP

public abstract class Message
extends java.lang.Object

Represent the general structure of a protocol message. It must have a type.


Field Summary
private  int priority
           
protected  int type
           
 
Constructor Summary
Message()
           
Message(int type)
           
Message(int type, int priority)
           
 
Method Summary
abstract  byte[] generate()
           
 int getPriority()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

priority

private int priority

type

protected int type
Constructor Detail

Message

public Message()

Message

public Message(int type)

Message

public Message(int type,
               int priority)
Method Detail

generate

public abstract byte[] generate()

getPriority

public int getPriority()

getType

public int getType()