Compare commits
No commits in common. "04e22a7dc76f339148305c661bf61b937d17e6a2" and "a97b32c9d4a5cd1000c2ec265a10fe68df46448b" have entirely different histories.
04e22a7dc7
...
a97b32c9d4
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
BIN
keystore.jks
BIN
keystore.jks
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
package com.captainalm.test.calmnet;
|
package com.captainalm.test.calmnet;
|
||||||
|
|
||||||
import com.captainalm.lib.calmnet.ssl.*;
|
import com.captainalm.lib.calmnet.SSLUtilities;
|
||||||
|
import com.captainalm.lib.calmnet.SSLUtilityException;
|
||||||
import com.captainalm.lib.calmnet.packet.IPacket;
|
import com.captainalm.lib.calmnet.packet.IPacket;
|
||||||
import com.captainalm.lib.calmnet.packet.PacketException;
|
import com.captainalm.lib.calmnet.packet.PacketException;
|
||||||
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package com.captainalm.test.calmnet;
|
package com.captainalm.test.calmnet;
|
||||||
|
|
||||||
import com.captainalm.lib.calmnet.packet.*;
|
import com.captainalm.lib.calmnet.packet.*;
|
||||||
import com.captainalm.lib.calmnet.packet.factory.CALMNETPacketFactory;
|
|
||||||
import com.captainalm.lib.calmnet.packet.factory.IPacketFactory;
|
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
package com.captainalm.test.calmnet;
|
package com.captainalm.test.calmnet;
|
||||||
|
|
||||||
import com.captainalm.lib.calmnet.ssl.*;
|
import com.captainalm.lib.calmnet.SSLUtilities;
|
||||||
|
import com.captainalm.lib.calmnet.SSLUtilityException;
|
||||||
import com.captainalm.lib.calmnet.packet.*;
|
import com.captainalm.lib.calmnet.packet.*;
|
||||||
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
||||||
import com.captainalm.lib.calmnet.packet.fragment.*;
|
import com.captainalm.lib.calmnet.packet.fragment.FragmentAllocationPacket;
|
||||||
|
import com.captainalm.lib.calmnet.packet.fragment.FragmentPIDPacket;
|
||||||
|
import com.captainalm.lib.calmnet.packet.fragment.FragmentSendStopPacket;
|
||||||
import com.captainalm.lib.calmnet.stream.NetworkInputStream;
|
import com.captainalm.lib.calmnet.stream.NetworkInputStream;
|
||||||
import com.captainalm.lib.calmnet.stream.NetworkOutputStream;
|
import com.captainalm.lib.calmnet.stream.NetworkOutputStream;
|
||||||
|
|
||||||
@ -86,15 +89,9 @@ public final class NetworkRuntime {
|
|||||||
|
|
||||||
private void init(boolean useFragmentation, boolean verifyFragmentPayloads) {
|
private void init(boolean useFragmentation, boolean verifyFragmentPayloads) {
|
||||||
fragmentReceiver = (useFragmentation) ? new FragmentReceiver(factory.getPacketLoader(), factory) : null;
|
fragmentReceiver = (useFragmentation) ? new FragmentReceiver(factory.getPacketLoader(), factory) : null;
|
||||||
if (fragmentReceiver != null) {
|
if (fragmentReceiver != null) fragmentReceiver.setResponseVerification(verifyFragmentPayloads);
|
||||||
fragmentReceiver.setResponseVerification(verifyFragmentPayloads);
|
|
||||||
fragmentReceiver.setSentDataWillBeAllVerified(verifyFragmentPayloads);
|
|
||||||
}
|
|
||||||
fragmentSender = (useFragmentation) ? new FragmentSender(factory.getPacketLoader()) : null;
|
fragmentSender = (useFragmentation) ? new FragmentSender(factory.getPacketLoader()) : null;
|
||||||
if (fragmentSender != null) {
|
if (fragmentSender != null) fragmentSender.setResponseVerification(verifyFragmentPayloads);
|
||||||
fragmentSender.setResponseVerification(verifyFragmentPayloads);
|
|
||||||
fragmentSender.setSentDataWillBeAllVerified(verifyFragmentPayloads);
|
|
||||||
}
|
|
||||||
receiveThread.start();
|
receiveThread.start();
|
||||||
if (useFragmentation) {
|
if (useFragmentation) {
|
||||||
fragmentMonitorThread.start();
|
fragmentMonitorThread.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user