Created packet enum to class packets and started progress on how the packets are read and parsed according to the type of packet.

#story[820]
This commit is contained in:
Kusal Ekanayake
2017-04-24 15:50:21 +12:00
parent 3dc1a7f9c0
commit 403dc480c4
4 changed files with 85 additions and 3 deletions
@@ -84,7 +84,7 @@ public class StreamReceiver {
}
long payloadLength = bytesToLong(getBytes(2));
//No. of milliseconds since Jan 1st 1970
System.out.println("timeStamp = " + timeStamp);
// System.out.println("timeStamp = " + timeStamp);
// System.out.println("payload length: " + payloadLength);
priorityQue.add(new StreamPacket(type, payloadLength, timeStamp, getBytes((int)payloadLength)));
Checksum checksum = new CRC32();