|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.enderak.procol.common.net.ProColPacket
Represents a ProCol packet that is sent over the network connection
| Field Summary | |
byte[] |
data
Data section of this packet |
int |
dataRemaining
Data remaining in this message |
int |
dataSize
Data size of this message |
int |
messageID
The message id this packet is a part of |
int |
requestCode
Request code for this message |
| Constructor Summary | |
ProColPacket(int messageIDIn,
int requestCodeIn,
int dataRemainingIn,
int dataSizeIn,
byte[] dataIn)
Creates a packet from existing data |
|
| Method Summary | |
void |
setPacket(int messageIDIn,
int requestCodeIn,
int dataRemainingIn,
int dataSizeIn,
byte[] dataIn)
Redefines this packet from existing data |
java.lang.String |
toString()
Prints this packet's information |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int messageID
public int dataRemaining
public int requestCode
public int dataSize
public byte[] data
| Constructor Detail |
public ProColPacket(int messageIDIn,
int requestCodeIn,
int dataRemainingIn,
int dataSizeIn,
byte[] dataIn)
messageIDIn - The the message ID this packet is a part ofrequestCodeIn - The request code for this packetdataRemainingIn - The number of bytes remaining in the message,
including this packet's datadataSizeIn - The size of the data section of this packetdataIn - The bytes that make upthe data section of this
packet| Method Detail |
public void setPacket(int messageIDIn,
int requestCodeIn,
int dataRemainingIn,
int dataSizeIn,
byte[] dataIn)
messageIDIn - The the message ID this packet is a part ofrequestCodeIn - The request code for this packetdataRemainingIn - The number of bytes remaining in the message,
including this packet's datadataSizeIn - The size of the data section of this packetdataIn - The bytes that make upthe data section of this
packetpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||