public class PacketMessages extends Packet
buffer, bytes, dataOut, packetId, packetType, serverName, timestamp, TYPE_MESSAGES, TYPE_TRANSEVENT| Modifier and Type | Method and Description |
|---|---|
static PacketMessages |
forRead(Packet header) |
static PacketMessages |
forWrite(long packetId,
long timestamp,
String serverName) |
List<Message> |
getMessages()
Return the messages contained in this Packet.
|
protected void |
readMessage(DataInput dataInput,
int msgType)
Read the messages (Ack, Resend or Control) contained in this packet.
|
forWrite, getBytes, getPacketId, getPacketType, getServerName, getSize, getTimestamp, incrementResendCount, read, readHeader, writeBinaryMessage, writeEofpublic static PacketMessages forWrite(long packetId, long timestamp, String serverName) throws IOException
IOExceptionpublic static PacketMessages forRead(Packet header) throws IOException
IOExceptionprotected void readMessage(DataInput dataInput, int msgType) throws IOException
readMessage in class PacketIOExceptionCopyright © 2014. All Rights Reserved.