Changed Holocore to use TCP. No big deal

This commit is contained in:
Obique PSWG
2016-01-02 22:17:39 -06:00
parent b816d62b24
commit ab79500f13
47 changed files with 769 additions and 2841 deletions
@@ -29,8 +29,6 @@ package network.encryption;
import java.util.Random;
import network.packets.soe.Acknowledge;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -99,16 +97,4 @@ public class TestEncryption {
// }
// }
@Test
public void testAcknowledge() {
Random r = new Random();
int crc = r.nextInt();
System.out.println(Integer.toHexString(crc));
Acknowledge a = new Acknowledge((short) 5);
byte [] data = a.encode().array();
byte [] encoded = Encryption.encode(data, crc);
byte [] decoded = Encryption.decode(encoded, crc);
Assert.assertArrayEquals(data, decoded);
}
}