@@ -0,0 +1,1275 @@
+package com.checkers.kingme.comp474checkers.network.kmp;%0A%0A/**%0A * Created by Carlos %0A */%0Aimport java.io.*;%0Aimport java.util.Arrays;%0A%0A// this class implements our KMP (King Me Protocol) ACK packet structure%0Apublic class KMPAcknowledgement extends BaseKMPPacket %7B%0A%0A    public static final byte OPCODE = ACKop;%0A%0A    public KMPAcknowledgement(int msgid)%0A    %7B%0A        super(OPCODE, msgid);%0A    %7D%0A%0A    // constructor to build a packet incoming from the network%0A    public KMPAcknowledgement(byte%5B%5D buffer, int length) throws IOException%0A    %7B%0A        byte bufopcode;%0A        short bufmsgid;%0A%0A        ByteArrayInputStream bais = new ByteArrayInputStream(Arrays.copyOf(buffer, length));%0A        DataInputStream dis = new DataInputStream(bais);%0A        bufopcode = dis.readByte();%0A        bufmsgid = dis.readShort();%0A        if (bufopcode != OPCODE) %7B%0A            throw new IOException(%22Wrong opcode!%22);%0A        %7D%0A%0A        this.opcode = bufopcode;%0A        this.msgid = bufmsgid;%0A    %7D%0A%0A    public byte%5B%5D write() throws IOException%0A    %7B%0A        ByteArrayOutputStream baos = new ByteArrayOutputStream(size());%0A        DataOutputStream dos = new DataOutputStream(baos);%0A        dos.writeByte(this.opcode);%0A        dos.writeShort(this.msgid);%0A        return baos.toByteArray();%0A    %7D%0A%0A%7D%0A

Create KMPAcknowledgement.java