Class MessageChoke
- java.lang.Object
-
- org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
-
-
Constructor Summary
Constructors Constructor Description MessageChoke()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()The id of this messageintgetLength()The length of the message (only needed on writing)
The length should include the byte for the message idvoidprocess(Peer peer)Process the messagevoidread(InStream inStream)Read a message from the inputStreamStringtoString()voidwrite(OutStream outStream)Writes the message to the output stream
-
-
-
Method Detail
-
write
public void write(OutStream outStream)
Description copied from interface:IMessageWrites the message to the output stream
-
read
public void read(InStream inStream)
Description copied from interface:IMessageRead a message from the inputStream
-
process
public void process(Peer peer)
Description copied from interface:IMessageProcess the message
-
getLength
public int getLength()
Description copied from interface:IMessageThe length of the message (only needed on writing)
The length should include the byte for the message id
-
getId
public int getId()
Description copied from interface:IMessageThe id of this message
-
-