| Constructor and Description |
|---|
MessageBlock() |
MessageBlock(int index,
int offset,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
The id of this message
|
int |
getLength()
The length of the message (only needed on writing)
The length should include the byte for the message id |
void |
process(Peer peer)
Process the message
|
void |
read(InStream inStream)
Read a message from the inputStream
|
String |
toString() |
void |
write(OutStream outStream)
Writes the message to the output stream
|
public MessageBlock()
public MessageBlock(int index,
int offset,
byte[] data)
public void write(OutStream outStream)
IMessagepublic void read(InStream inStream)
IMessagepublic void process(Peer peer)
IMessagepublic int getLength()
IMessagepublic int getId()
IMessageCopyright © 2016. All rights reserved.