Compare commits
2 Commits
a97b32c9d4
...
04e22a7dc7
Author | SHA1 | Date | |
---|---|---|---|
04e22a7dc7 | |||
126f5c95c7 |
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?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,7 +1,6 @@
|
||||
package com.captainalm.test.calmnet;
|
||||
|
||||
import com.captainalm.lib.calmnet.SSLUtilities;
|
||||
import com.captainalm.lib.calmnet.SSLUtilityException;
|
||||
import com.captainalm.lib.calmnet.ssl.*;
|
||||
import com.captainalm.lib.calmnet.packet.IPacket;
|
||||
import com.captainalm.lib.calmnet.packet.PacketException;
|
||||
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
||||
|
@ -1,6 +1,8 @@
|
||||
package com.captainalm.test.calmnet;
|
||||
|
||||
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;
|
||||
|
||||
|
@ -1,12 +1,9 @@
|
||||
package com.captainalm.test.calmnet;
|
||||
|
||||
import com.captainalm.lib.calmnet.SSLUtilities;
|
||||
import com.captainalm.lib.calmnet.SSLUtilityException;
|
||||
import com.captainalm.lib.calmnet.ssl.*;
|
||||
import com.captainalm.lib.calmnet.packet.*;
|
||||
import com.captainalm.lib.calmnet.packet.core.NetworkSSLUpgradePacket;
|
||||
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.packet.fragment.*;
|
||||
import com.captainalm.lib.calmnet.stream.NetworkInputStream;
|
||||
import com.captainalm.lib.calmnet.stream.NetworkOutputStream;
|
||||
|
||||
@ -89,9 +86,15 @@ public final class NetworkRuntime {
|
||||
|
||||
private void init(boolean useFragmentation, boolean verifyFragmentPayloads) {
|
||||
fragmentReceiver = (useFragmentation) ? new FragmentReceiver(factory.getPacketLoader(), factory) : null;
|
||||
if (fragmentReceiver != null) fragmentReceiver.setResponseVerification(verifyFragmentPayloads);
|
||||
if (fragmentReceiver != null) {
|
||||
fragmentReceiver.setResponseVerification(verifyFragmentPayloads);
|
||||
fragmentReceiver.setSentDataWillBeAllVerified(verifyFragmentPayloads);
|
||||
}
|
||||
fragmentSender = (useFragmentation) ? new FragmentSender(factory.getPacketLoader()) : null;
|
||||
if (fragmentSender != null) fragmentSender.setResponseVerification(verifyFragmentPayloads);
|
||||
if (fragmentSender != null) {
|
||||
fragmentSender.setResponseVerification(verifyFragmentPayloads);
|
||||
fragmentSender.setSentDataWillBeAllVerified(verifyFragmentPayloads);
|
||||
}
|
||||
receiveThread.start();
|
||||
if (useFragmentation) {
|
||||
fragmentMonitorThread.start();
|
||||
|
Loading…
Reference in New Issue
Block a user