Compare commits

...

3 Commits

96 changed files with 576 additions and 286 deletions

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>All Classes</title> <title>All Classes</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>All Classes</title> <title>All Classes</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>CandidateClient</title> <title>CandidateClient</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentationOptions</title> <title>FragmentationOptions</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetMarshalClient</title> <title>NetMarshalClient</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetMarshalClientWrapped</title> <title>NetMarshalClientWrapped</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetMarshalServer</title> <title>NetMarshalServer</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetMarshalServerWrapped</title> <title>NetMarshalServerWrapped</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>com.captainalm.lib.calmnet.marshal</title> <title>com.captainalm.lib.calmnet.marshal</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>com.captainalm.lib.calmnet.marshal</title> <title>com.captainalm.lib.calmnet.marshal</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>com.captainalm.lib.calmnet.marshal Class Hierarchy</title> <title>com.captainalm.lib.calmnet.marshal Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>IAcknowledgement</title> <title>IAcknowledgement</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>IInternalCache</title> <title>IInternalCache</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>IPacket</title> <title>IPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>IStreamedPacket</title> <title>IStreamedPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>PacketException</title> <title>PacketException</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>PacketLoader</title> <title>PacketLoader</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>
@ -18,7 +18,7 @@
catch(err) { catch(err) {
} }
//--> //-->
var methods = {"i0":10,"i1":9,"i2":10,"i3":9,"i4":10,"i5":9,"i6":9,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":9,"i15":10,"i16":10,"i17":10}; var methods = {"i0":9,"i1":10,"i2":9,"i3":10,"i4":9,"i5":10,"i6":10,"i7":9,"i8":9,"i9":9,"i10":9,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":9,"i19":9,"i20":10,"i21":10,"i22":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor"; var altColor = "altColor";
var rowColor = "rowColor"; var rowColor = "rowColor";
@ -144,6 +144,13 @@ extends java.lang.Object</pre>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>.</div> <div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>.</div>
</td> </td>
</tr> </tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-boolean-">PacketLoader</a></span>(com.captainalm.lib.stdcrypt.digest.DigestProvider&nbsp;provider,
boolean&nbsp;oldPacketFormat)</code>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>
and if the old packet format should be used.</div>
</td>
</tr>
</table> </table>
</li> </li>
</ul> </ul>
@ -160,30 +167,36 @@ extends java.lang.Object</pre>
<th class="colLast" scope="col">Method and Description</th> <th class="colLast" scope="col">Method and Description</th>
</tr> </tr>
<tr id="i0" class="altColor"> <tr id="i0" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#addMostSignificantFlag-int-">addMostSignificantFlag</a></span>(int&nbsp;value)</code>
<div class="block">Adds the most significant flag to the given integer.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td> <td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#areInvalidPacketsAllowed--">areInvalidPacketsAllowed</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#areInvalidPacketsAllowed--">areInvalidPacketsAllowed</a></span>()</code>
<div class="block">Gets whether invalid packets are allowed to be read and written.</div> <div class="block">Gets whether invalid packets are allowed to be read and written.</div>
</td> </td>
</tr> </tr>
<tr id="i1" class="rowColor"> <tr id="i2" class="altColor">
<td class="colFirst"><code>static byte[]</code></td> <td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getByteArrayFromInteger-int-">getByteArrayFromInteger</a></span>(int&nbsp;i)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getByteArrayFromInteger-int-">getByteArrayFromInteger</a></span>(int&nbsp;i)</code>
<div class="block">Saves an Integer into a byte array.</div> <div class="block">Saves an Integer into a byte array.</div>
</td> </td>
</tr> </tr>
<tr id="i2" class="altColor"> <tr id="i3" class="rowColor">
<td class="colFirst"><code>com.captainalm.lib.stdcrypt.digest.DigestProvider</code></td> <td class="colFirst"><code>com.captainalm.lib.stdcrypt.digest.DigestProvider</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--">getHashProvider</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getHashProvider--">getHashProvider</a></span>()</code>
<div class="block">This field provides the <code>DigestProvider</code> to use for the payload of the packets on the trailer.</div> <div class="block">This field provides the <code>DigestProvider</code> to use for the payload of the packets on the trailer.</div>
</td> </td>
</tr> </tr>
<tr id="i3" class="rowColor"> <tr id="i4" class="altColor">
<td class="colFirst"><code>static int</code></td> <td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getIntegerFromByteArray-byte:A-">getIntegerFromByteArray</a></span>(byte[]&nbsp;bytes)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getIntegerFromByteArray-byte:A-">getIntegerFromByteArray</a></span>(byte[]&nbsp;bytes)</code>
<div class="block">Loads an Integer from a byte array.</div> <div class="block">Loads an Integer from a byte array.</div>
</td> </td>
</tr> </tr>
<tr id="i4" class="altColor"> <tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td> <td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getPacketSize-com.captainalm.lib.calmnet.packet.IPacket-boolean-boolean-">getPacketSize</a></span>(<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#getPacketSize-com.captainalm.lib.calmnet.packet.IPacket-boolean-boolean-">getPacketSize</a></span>(<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet,
boolean&nbsp;includeInformation, boolean&nbsp;includeInformation,
@ -191,26 +204,38 @@ extends java.lang.Object</pre>
<div class="block">Gets the total size of a written packet in bytes.</div> <div class="block">Gets the total size of a written packet in bytes.</div>
</td> </td>
</tr> </tr>
<tr id="i5" class="rowColor"> <tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#isOldPacketFormatInUse--">isOldPacketFormatInUse</a></span>()</code>
<div class="block">Is the old packet format in use (No explicit hash indication nor length).</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static byte[]</code></td> <td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readArrayFromInputStream-java.io.InputStream-int-">readArrayFromInputStream</a></span>(java.io.InputStream&nbsp;inputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readArrayFromInputStream-java.io.InputStream-int-">readArrayFromInputStream</a></span>(java.io.InputStream&nbsp;inputStream,
int&nbsp;length)</code> int&nbsp;length)</code>
<div class="block">Reads in a byte array of a specified length from an <code>InputStream</code>.</div> <div class="block">Reads in a byte array of a specified length from an <code>InputStream</code>.</div>
</td> </td>
</tr> </tr>
<tr id="i6" class="altColor"> <tr id="i8" class="altColor">
<td class="colFirst"><code>static byte</code></td> <td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteFromInputStream-java.io.InputStream-">readByteFromInputStream</a></span>(java.io.InputStream&nbsp;inputStream)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteFromInputStream-java.io.InputStream-">readByteFromInputStream</a></span>(java.io.InputStream&nbsp;inputStream)</code>
<div class="block">Reads a byte from an <code>InputStream</code>.</div> <div class="block">Reads a byte from an <code>InputStream</code>.</div>
</td> </td>
</tr> </tr>
<tr id="i7" class="rowColor"> <tr id="i9" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteIntegerFromInputStream-java.io.InputStream-">readByteIntegerFromInputStream</a></span>(java.io.InputStream&nbsp;inputStream)</code>
<div class="block">Reads a byte (In int form) from an <code>InputStream</code>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static int</code></td> <td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readInteger-java.io.InputStream-">readInteger</a></span>(java.io.InputStream&nbsp;inputStream)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readInteger-java.io.InputStream-">readInteger</a></span>(java.io.InputStream&nbsp;inputStream)</code>
<div class="block">Reads an Integer from an <code>InputStream</code>.</div> <div class="block">Reads an Integer from an <code>InputStream</code>.</div>
</td> </td>
</tr> </tr>
<tr id="i8" class="altColor"> <tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td> <td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacket-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacket</a></span>(java.io.InputStream&nbsp;inputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacket-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacket</a></span>(java.io.InputStream&nbsp;inputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory,
@ -218,7 +243,7 @@ extends java.lang.Object</pre>
<div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream.</div> <div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream.</div>
</td> </td>
</tr> </tr>
<tr id="i9" class="rowColor"> <tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td> <td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacketNoDigest-byte:A-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacketNoDigest</a></span>(byte[]&nbsp;arrayIn, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacketNoDigest-byte:A-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacketNoDigest</a></span>(byte[]&nbsp;arrayIn,
<a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory,
@ -226,7 +251,7 @@ extends java.lang.Object</pre>
<div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from a byte array (No digest support).</div> <div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from a byte array (No digest support).</div>
</td> </td>
</tr> </tr>
<tr id="i10" class="altColor"> <tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td> <td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacketNoDigest-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacketNoDigest</a></span>(java.io.InputStream&nbsp;inputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readPacketNoDigest-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readPacketNoDigest</a></span>(java.io.InputStream&nbsp;inputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory,
@ -234,7 +259,7 @@ extends java.lang.Object</pre>
<div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream (No digest support).</div> <div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> from an input stream (No digest support).</div>
</td> </td>
</tr> </tr>
<tr id="i11" class="rowColor"> <tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td> <td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readStreamedPacket-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readStreamedPacket</a></span>(java.io.InputStream&nbsp;inputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readStreamedPacket-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readStreamedPacket</a></span>(java.io.InputStream&nbsp;inputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory,
@ -242,7 +267,7 @@ extends java.lang.Object</pre>
<div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream.</div> <div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream.</div>
</td> </td>
</tr> </tr>
<tr id="i12" class="altColor"> <tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td> <td class="colFirst"><code><a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readStreamedPacketNoDigest-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readStreamedPacketNoDigest</a></span>(java.io.InputStream&nbsp;inputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readStreamedPacketNoDigest-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">readStreamedPacketNoDigest</a></span>(java.io.InputStream&nbsp;inputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a>&nbsp;factory,
@ -250,20 +275,32 @@ extends java.lang.Object</pre>
<div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream (No digest support).</div> <div class="block">Reads a <a href="../../../../../com/captainalm/lib/calmnet/packet/IStreamedPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IStreamedPacket</code></a> from an input stream (No digest support).</div>
</td> </td>
</tr> </tr>
<tr id="i13" class="rowColor"> <tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#setAllowInvalidPackets-boolean-">setAllowInvalidPackets</a></span>(boolean&nbsp;allowInvalidPackets)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#setAllowInvalidPackets-boolean-">setAllowInvalidPackets</a></span>(boolean&nbsp;allowInvalidPackets)</code>
<div class="block">This sets whether invalid packets are allowed to be read and written.</div> <div class="block">This sets whether invalid packets are allowed to be read and written.</div>
</td> </td>
</tr> </tr>
<tr id="i14" class="altColor"> <tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#setOldPacketFormatUsage-boolean-">setOldPacketFormatUsage</a></span>(boolean&nbsp;useOldFormat)</code>
<div class="block">Sets if the old packet format should be used (No explicit hash indication nor length).</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#subtractMostSignificantFlag-int-">subtractMostSignificantFlag</a></span>(int&nbsp;value)</code>
<div class="block">Subtracts the most significant flag from the given integer.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static void</code></td> <td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writeInteger-java.io.OutputStream-int-">writeInteger</a></span>(java.io.OutputStream&nbsp;outputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writeInteger-java.io.OutputStream-int-">writeInteger</a></span>(java.io.OutputStream&nbsp;outputStream,
int&nbsp;i)</code> int&nbsp;i)</code>
<div class="block">Writes an Integer to the <code>OutputStream</code> using 4 bytes.</div> <div class="block">Writes an Integer to the <code>OutputStream</code> using 4 bytes.</div>
</td> </td>
</tr> </tr>
<tr id="i15" class="rowColor"> <tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacket-java.io.OutputStream-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacket</a></span>(java.io.OutputStream&nbsp;outputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacket-java.io.OutputStream-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacket</a></span>(java.io.OutputStream&nbsp;outputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet, <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet,
@ -271,14 +308,14 @@ extends java.lang.Object</pre>
<div class="block">Writes a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream (No digest support).</div> <div class="block">Writes a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to an output stream (No digest support).</div>
</td> </td>
</tr> </tr>
<tr id="i16" class="altColor"> <tr id="i21" class="rowColor">
<td class="colFirst"><code>byte[]</code></td> <td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacketNoDigest-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacketNoDigest</a></span>(<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacketNoDigest-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacketNoDigest</a></span>(<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet,
boolean&nbsp;writeInformation)</code> boolean&nbsp;writeInformation)</code>
<div class="block">Returns a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to a byte array (No digest support).</div> <div class="block">Returns a <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> to a byte array (No digest support).</div>
</td> </td>
</tr> </tr>
<tr id="i17" class="rowColor"> <tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacketNoDigest-java.io.OutputStream-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacketNoDigest</a></span>(java.io.OutputStream&nbsp;outputStream, <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#writePacketNoDigest-java.io.OutputStream-com.captainalm.lib.calmnet.packet.IPacket-boolean-">writePacketNoDigest</a></span>(java.io.OutputStream&nbsp;outputStream,
<a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet, <a href="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>&nbsp;packet,
@ -322,13 +359,13 @@ extends java.lang.Object</pre>
<a name="PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-"> <a name="PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-">
<!-- --> <!-- -->
</a> </a>
<ul class="blockListLast"> <ul class="blockList">
<li class="blockList"> <li class="blockList">
<h4>PacketLoader</h4> <h4>PacketLoader</h4>
<pre>public&nbsp;PacketLoader(com.captainalm.lib.stdcrypt.digest.DigestProvider&nbsp;provider)</pre> <pre>public&nbsp;PacketLoader(com.captainalm.lib.stdcrypt.digest.DigestProvider&nbsp;provider)</pre>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>. <div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>.
If using a digest provider, make sure all endpoints use the same algorithm; If using a digest provider, make sure all endpoints use the same algorithm;
if null, no trailer is created or expected; if null, no trailer is created;
this is ignored if saving / loading packets from byte arrays.</div> this is ignored if saving / loading packets from byte arrays.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
@ -336,6 +373,26 @@ extends java.lang.Object</pre>
</dl> </dl>
</li> </li>
</ul> </ul>
<a name="PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-boolean-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PacketLoader</h4>
<pre>public&nbsp;PacketLoader(com.captainalm.lib.stdcrypt.digest.DigestProvider&nbsp;provider,
boolean&nbsp;oldPacketFormat)</pre>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>
and if the old packet format should be used.
If using a digest provider, make sure all endpoints use the same algorithm;
if null, no trailer is created;
this is ignored if saving / loading packets from byte arrays.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>provider</code> - The digest provider or null.</dd>
<dd><code>oldPacketFormat</code> - If the old packet format should be used (No explicit hash indication nor length).</dd>
</dl>
</li>
</ul>
</li> </li>
</ul> </ul>
<!-- ============ METHOD DETAIL ========== --> <!-- ============ METHOD DETAIL ========== -->
@ -386,6 +443,66 @@ extends java.lang.Object</pre>
</dl> </dl>
</li> </li>
</ul> </ul>
<a name="isOldPacketFormatInUse--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOldPacketFormatInUse</h4>
<pre>public&nbsp;boolean&nbsp;isOldPacketFormatInUse()</pre>
<div class="block">Is the old packet format in use (No explicit hash indication nor length).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>If the old packet format is in use.</dd>
</dl>
</li>
</ul>
<a name="setOldPacketFormatUsage-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOldPacketFormatUsage</h4>
<pre>public&nbsp;void&nbsp;setOldPacketFormatUsage(boolean&nbsp;useOldFormat)</pre>
<div class="block">Sets if the old packet format should be used (No explicit hash indication nor length).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>useOldFormat</code> - If the old packet format should be used.</dd>
</dl>
</li>
</ul>
<a name="addMostSignificantFlag-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMostSignificantFlag</h4>
<pre>public static&nbsp;int&nbsp;addMostSignificantFlag(int&nbsp;value)</pre>
<div class="block">Adds the most significant flag to the given integer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The integer to add the flag to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The integer with the flag added.</dd>
</dl>
</li>
</ul>
<a name="subtractMostSignificantFlag-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>subtractMostSignificantFlag</h4>
<pre>public static&nbsp;int&nbsp;subtractMostSignificantFlag(int&nbsp;value)</pre>
<div class="block">Subtracts the most significant flag from the given integer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The integer to subtract the flag from.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The integer with the flag subtracted.</dd>
</dl>
</li>
</ul>
<a name="readPacketNoDigest-byte:A-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-"> <a name="readPacketNoDigest-byte:A-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketProtocolInformation-">
<!-- --> <!-- -->
</a> </a>
@ -539,6 +656,8 @@ extends java.lang.Object</pre>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>packet</code> - The packet to save.</dd> <dd><code>packet</code> - The packet to save.</dd>
<dd><code>writeInformation</code> - Write the <a href="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketProtocolInformation</code></a> to the beginning of the array.</dd> <dd><code>writeInformation</code> - Write the <a href="../../../../../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketProtocolInformation</code></a> to the beginning of the array.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The written packet data as a byte array.</dd>
<dt><span class="throwsLabel">Throws:</span></dt> <dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - A parameter is null.</dd> <dd><code>java.lang.NullPointerException</code> - A parameter is null.</dd>
<dd><code><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd> <dd><code><a href="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html" title="class in com.captainalm.lib.calmnet.packet">PacketException</a></code> - An Exception has occurred.</dd>
@ -630,7 +749,6 @@ extends java.lang.Object</pre>
<dd><code>i</code> - The integer to store.</dd> <dd><code>i</code> - The integer to store.</dd>
<dt><span class="throwsLabel">Throws:</span></dt> <dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - outputStream is null.</dd> <dd><code>java.lang.NullPointerException</code> - outputStream is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - i is less than 0.</dd>
<dd><code>java.io.IOException</code> - An I/O error has occurred.</dd> <dd><code>java.io.IOException</code> - An I/O error has occurred.</dd>
</dl> </dl>
</li> </li>
@ -643,7 +761,8 @@ extends java.lang.Object</pre>
<h4>readByteFromInputStream</h4> <h4>readByteFromInputStream</h4>
<pre>public static&nbsp;byte&nbsp;readByteFromInputStream(java.io.InputStream&nbsp;inputStream) <pre>public static&nbsp;byte&nbsp;readByteFromInputStream(java.io.InputStream&nbsp;inputStream)
throws java.io.IOException</pre> throws java.io.IOException</pre>
<div class="block">Reads a byte from an <code>InputStream</code>.</div> <div class="block">Reads a byte from an <code>InputStream</code>.
See also: <a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteIntegerFromInputStream-java.io.InputStream-"><code>readByteIntegerFromInputStream(InputStream)</code></a>.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>inputStream</code> - The input stream to read from.</dd> <dd><code>inputStream</code> - The input stream to read from.</dd>
@ -655,6 +774,27 @@ extends java.lang.Object</pre>
</dl> </dl>
</li> </li>
</ul> </ul>
<a name="readByteIntegerFromInputStream-java.io.InputStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readByteIntegerFromInputStream</h4>
<pre>public static&nbsp;int&nbsp;readByteIntegerFromInputStream(java.io.InputStream&nbsp;inputStream)
throws java.io.IOException</pre>
<div class="block">Reads a byte (In int form) from an <code>InputStream</code>.
See also: <a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteFromInputStream-java.io.InputStream-"><code>readByteFromInputStream(InputStream)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>inputStream</code> - The input stream to read from.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The byte read (As an int).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - inputStream is null.</dd>
<dd><code>java.io.IOException</code> - An I/O error has occurred or end of stream has been reached.</dd>
</dl>
</li>
</ul>
<a name="readArrayFromInputStream-java.io.InputStream-int-"> <a name="readArrayFromInputStream-java.io.InputStream-int-">
<!-- --> <!-- -->
</a> </a>
@ -691,8 +831,6 @@ extends java.lang.Object</pre>
<dd><code>i</code> - The integer to save.</dd> <dd><code>i</code> - The integer to save.</dd>
<dt><span class="returnLabel">Returns:</span></dt> <dt><span class="returnLabel">Returns:</span></dt>
<dd>The byte array.</dd> <dd>The byte array.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - i is less than 0.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>PacketProtocolInformation</title> <title>PacketProtocolInformation</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>Base64Packet</title> <title>Base64Packet</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>EncryptedPacket</title> <title>EncryptedPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>
@ -394,6 +394,7 @@ implements <a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreame
<dd><code>factory</code> - The packet factory to use.</dd> <dd><code>factory</code> - The packet factory to use.</dd>
<dd><code>loader</code> - The Packet Loader to use.</dd> <dd><code>loader</code> - The Packet Loader to use.</dd>
<dd><code>cipherFactory</code> - The cipher factory to use.</dd> <dd><code>cipherFactory</code> - The cipher factory to use.</dd>
<dd><code>packet</code> - The packet to use.</dd>
<dt><span class="throwsLabel">Throws:</span></dt> <dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - factory, loader or cipherFactory is null.</dd> <dd><code>java.lang.NullPointerException</code> - factory, loader or cipherFactory is null.</dd>
</dl> </dl>
@ -417,6 +418,7 @@ implements <a href="../../../../../../com/captainalm/lib/calmnet/packet/IStreame
<dd><code>factory</code> - The packet factory to use.</dd> <dd><code>factory</code> - The packet factory to use.</dd>
<dd><code>loader</code> - The Packet Loader to use.</dd> <dd><code>loader</code> - The Packet Loader to use.</dd>
<dd><code>cipherFactory</code> - The cipher factory to use.</dd> <dd><code>cipherFactory</code> - The cipher factory to use.</dd>
<dd><code>packet</code> - The packet to use.</dd>
<dd><code>useCache</code> - If the encrypted data should be cached.</dd> <dd><code>useCache</code> - If the encrypted data should be cached.</dd>
<dt><span class="throwsLabel">Throws:</span></dt> <dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - factory, loader or cipherFactory is null.</dd> <dd><code>java.lang.NullPointerException</code> - factory, loader or cipherFactory is null.</dd>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkEncryptionCipherPacket</title> <title>NetworkEncryptionCipherPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkEncryptionUpgradePacket</title> <title>NetworkEncryptionUpgradePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkIdentifierPacket</title> <title>NetworkIdentifierPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkSSLUpgradePacket</title> <title>NetworkSSLUpgradePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.core</title> <title>com.captainalm.lib.calmnet.packet.core</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.core</title> <title>com.captainalm.lib.calmnet.packet.core</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.core Class Hierarchy</title> <title>com.captainalm.lib.calmnet.packet.core Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>CALMNETPacketFactory</title> <title>CALMNETPacketFactory</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>CALMNETPacketFactoryWithPacket</title> <title>CALMNETPacketFactoryWithPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>IPacketFactory</title> <title>IPacketFactory</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.factory</title> <title>com.captainalm.lib.calmnet.packet.factory</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.factory</title> <title>com.captainalm.lib.calmnet.packet.factory</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.factory Class Hierarchy</title> <title>com.captainalm.lib.calmnet.packet.factory Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentAllocatePacket</title> <title>FragmentAllocatePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentAllocationPacket</title> <title>FragmentAllocationPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentMessagePacket</title> <title>FragmentMessagePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentMessageResponsePacket</title> <title>FragmentMessageResponsePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentPIDAKNPacket</title> <title>FragmentPIDAKNPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentPIDMSGPacket</title> <title>FragmentPIDMSGPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:20 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentPIDPacket</title> <title>FragmentPIDPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentReceiver</title> <title>FragmentReceiver</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>
@ -266,25 +266,25 @@ extends java.lang.Object</pre>
<tr id="i18" class="altColor"> <tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-">setResponseVerification</a></span>(boolean&nbsp;state)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-">setResponseVerification</a></span>(boolean&nbsp;state)</code>
<div class="block">Sets whether responses should be verified.</div> <div class="block">Sets whether responses should be verified by sending back the payload to be verified.</div>
</td> </td>
</tr> </tr>
<tr id="i19" class="rowColor"> <tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified</a></span>(boolean&nbsp;state)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified</a></span>(boolean&nbsp;state)</code>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are expected to be verified.</div>
</td> </td>
</tr> </tr>
<tr id="i20" class="altColor"> <tr id="i20" class="altColor">
<td class="colFirst"><code>boolean</code></td> <td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified</a></span>()</code>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are expected to be verified.</div>
</td> </td>
</tr> </tr>
<tr id="i21" class="rowColor"> <tr id="i21" class="rowColor">
<td class="colFirst"><code>boolean</code></td> <td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldVerifyResponses--">shouldVerifyResponses</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldVerifyResponses--">shouldVerifyResponses</a></span>()</code>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by sending back the payload to be verified.</div>
</td> </td>
</tr> </tr>
<tr id="i22" class="altColor"> <tr id="i22" class="altColor">
@ -587,10 +587,10 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>shouldVerifyResponses</h4> <h4>shouldVerifyResponses</h4>
<pre>public&nbsp;boolean&nbsp;shouldVerifyResponses()</pre> <pre>public&nbsp;boolean&nbsp;shouldVerifyResponses()</pre>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by sending back the payload to be verified.</div>
<dl> <dl>
<dt><span class="returnLabel">Returns:</span></dt> <dt><span class="returnLabel">Returns:</span></dt>
<dd>Should responses be verified.</dd> <dd>Should responses be verified by sending back the payload.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>
@ -601,11 +601,11 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>setResponseVerification</h4> <h4>setResponseVerification</h4>
<pre>public&nbsp;void&nbsp;setResponseVerification(boolean&nbsp;state)</pre> <pre>public&nbsp;void&nbsp;setResponseVerification(boolean&nbsp;state)</pre>
<div class="block">Sets whether responses should be verified. <div class="block">Sets whether responses should be verified by sending back the payload to be verified.
If set to false, <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-"><code>setSentDataWillBeAllVerified(boolean)</code></a> will be set to false too.</div> If set to false, <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-"><code>setSentDataWillBeAllVerified(boolean)</code></a> will be set to false too.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>state</code> - If responses should be verified.</dd> <dd><code>state</code> - If responses should be verified by sending back the payload.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>
@ -616,10 +616,10 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>shouldSentDataBeAllVerified</h4> <h4>shouldSentDataBeAllVerified</h4>
<pre>public&nbsp;boolean&nbsp;shouldSentDataBeAllVerified()</pre> <pre>public&nbsp;boolean&nbsp;shouldSentDataBeAllVerified()</pre>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are expected to be verified.</div>
<dl> <dl>
<dt><span class="returnLabel">Returns:</span></dt> <dt><span class="returnLabel">Returns:</span></dt>
<dd>If all sent fragments will be verified to be equal.</dd> <dd>If all sent fragments are expected to be verified.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>
@ -630,11 +630,11 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>setSentDataWillBeAllVerified</h4> <h4>setSentDataWillBeAllVerified</h4>
<pre>public&nbsp;void&nbsp;setSentDataWillBeAllVerified(boolean&nbsp;state)</pre> <pre>public&nbsp;void&nbsp;setSentDataWillBeAllVerified(boolean&nbsp;state)</pre>
<div class="block">Gets whether all sent fragments are verified to be equal. <div class="block">Gets whether all sent fragments are expected to be verified.
Requires <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-"><code>setResponseVerification(boolean)</code></a> set to true.</div> Requires <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-"><code>setResponseVerification(boolean)</code></a> set to true.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>state</code> - If all sent fragments will be verified to be equal.</dd> <dd><code>state</code> - If all sent fragments are expected to be verified.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentRetrySendPacket</title> <title>FragmentRetrySendPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentSendCompletePacket</title> <title>FragmentSendCompletePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentSendStopPacket</title> <title>FragmentSendStopPacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentSendVerifyCompletePacket</title> <title>FragmentSendVerifyCompletePacket</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>FragmentSender</title> <title>FragmentSender</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>
@ -246,13 +246,13 @@ extends java.lang.Object</pre>
<tr id="i14" class="altColor"> <tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-">setResponseVerification</a></span>(boolean&nbsp;state)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-">setResponseVerification</a></span>(boolean&nbsp;state)</code>
<div class="block">Sets whether responses should be verified.</div> <div class="block">Sets whether responses should be verified by checking if they are equal.</div>
</td> </td>
</tr> </tr>
<tr id="i15" class="rowColor"> <tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td> <td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified</a></span>(boolean&nbsp;state)</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified</a></span>(boolean&nbsp;state)</code>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are verified via resend checks for equality.</div>
</td> </td>
</tr> </tr>
<tr id="i16" class="altColor"> <tr id="i16" class="altColor">
@ -264,13 +264,13 @@ extends java.lang.Object</pre>
<tr id="i17" class="rowColor"> <tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td> <td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified</a></span>()</code>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are verified via resend checks for equality.</div>
</td> </td>
</tr> </tr>
<tr id="i18" class="altColor"> <tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td> <td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldVerifyResponses--">shouldVerifyResponses</a></span>()</code> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldVerifyResponses--">shouldVerifyResponses</a></span>()</code>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by checking if they are equal.</div>
</td> </td>
</tr> </tr>
<tr id="i19" class="rowColor"> <tr id="i19" class="rowColor">
@ -573,7 +573,7 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>shouldVerifyResponses</h4> <h4>shouldVerifyResponses</h4>
<pre>public&nbsp;boolean&nbsp;shouldVerifyResponses()</pre> <pre>public&nbsp;boolean&nbsp;shouldVerifyResponses()</pre>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by checking if they are equal.</div>
<dl> <dl>
<dt><span class="returnLabel">Returns:</span></dt> <dt><span class="returnLabel">Returns:</span></dt>
<dd>Should responses be verified.</dd> <dd>Should responses be verified.</dd>
@ -587,7 +587,7 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>setResponseVerification</h4> <h4>setResponseVerification</h4>
<pre>public&nbsp;void&nbsp;setResponseVerification(boolean&nbsp;state)</pre> <pre>public&nbsp;void&nbsp;setResponseVerification(boolean&nbsp;state)</pre>
<div class="block">Sets whether responses should be verified. <div class="block">Sets whether responses should be verified by checking if they are equal.
If set to false, <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-"><code>setSentDataWillBeAllVerified(boolean)</code></a> will be set to false too.</div> If set to false, <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-"><code>setSentDataWillBeAllVerified(boolean)</code></a> will be set to false too.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
@ -602,10 +602,10 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>shouldSentDataBeAllVerified</h4> <h4>shouldSentDataBeAllVerified</h4>
<pre>public&nbsp;boolean&nbsp;shouldSentDataBeAllVerified()</pre> <pre>public&nbsp;boolean&nbsp;shouldSentDataBeAllVerified()</pre>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are verified via resend checks for equality.</div>
<dl> <dl>
<dt><span class="returnLabel">Returns:</span></dt> <dt><span class="returnLabel">Returns:</span></dt>
<dd>If all sent fragments will be verified to be equal.</dd> <dd>If all sent fragments will be verified via resend checks for equality.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>
@ -616,11 +616,11 @@ extends java.lang.Object</pre>
<li class="blockList"> <li class="blockList">
<h4>setSentDataWillBeAllVerified</h4> <h4>setSentDataWillBeAllVerified</h4>
<pre>public&nbsp;void&nbsp;setSentDataWillBeAllVerified(boolean&nbsp;state)</pre> <pre>public&nbsp;void&nbsp;setSentDataWillBeAllVerified(boolean&nbsp;state)</pre>
<div class="block">Gets whether all sent fragments are verified to be equal. <div class="block">Gets whether all sent fragments are verified via resend checks for equality.
Requires <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-"><code>setResponseVerification(boolean)</code></a> set to true.</div> Requires <a href="../../../../../../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-"><code>setResponseVerification(boolean)</code></a> set to true.</div>
<dl> <dl>
<dt><span class="paramLabel">Parameters:</span></dt> <dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>state</code> - If all sent fragments will be verified to be equal.</dd> <dd><code>state</code> - If all sent fragments will be verified via resend checks for equality.</dd>
</dl> </dl>
</li> </li>
</ul> </ul>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.fragment</title> <title>com.captainalm.lib.calmnet.packet.fragment</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.fragment</title> <title>com.captainalm.lib.calmnet.packet.fragment</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet.fragment Class Hierarchy</title> <title>com.captainalm.lib.calmnet.packet.fragment Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet</title> <title>com.captainalm.lib.calmnet.packet</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet</title> <title>com.captainalm.lib.calmnet.packet</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.packet Class Hierarchy</title> <title>com.captainalm.lib.calmnet.packet Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>SSLUtilities</title> <title>SSLUtilities</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>SSLUtilityException</title> <title>SSLUtilityException</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.ssl</title> <title>com.captainalm.lib.calmnet.ssl</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.ssl</title> <title>com.captainalm.lib.calmnet.ssl</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.ssl Class Hierarchy</title> <title>com.captainalm.lib.calmnet.ssl Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>LengthClampedInputStream</title> <title>LengthClampedInputStream</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkInputStream</title> <title>NetworkInputStream</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>NetworkOutputStream</title> <title>NetworkOutputStream</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.stream</title> <title>com.captainalm.lib.calmnet.stream</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.stream</title> <title>com.captainalm.lib.calmnet.stream</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>com.captainalm.lib.calmnet.stream Class Hierarchy</title> <title>com.captainalm.lib.calmnet.stream Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Constant Field Values</title> <title>Constant Field Values</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Deprecated List</title> <title>Deprecated List</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>API Help</title> <title>API Help</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>A-Index</title> <title>A-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>
@ -77,6 +77,10 @@
<dd> <dd>
<div class="block">Whether the candidate should be accepted.</div> <div class="block">Whether the candidate should be accepted.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#addMostSignificantFlag-int-">addMostSignificantFlag(int)</a></span> - Static method in class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Adds the most significant flag to the given integer.</div>
</dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/CandidateClient.html#address">address</a></span> - Variable in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/CandidateClient.html" title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/CandidateClient.html#address">address</a></span> - Variable in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/CandidateClient.html" title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a></dt>
<dd> <dd>
<div class="block">The remote address of the candidate.</div> <div class="block">The remote address of the candidate.</div>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>L-Index</title> <title>L-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>M-Index</title> <title>M-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>N-Index</title> <title>N-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>O-Index</title> <title>O-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>P-Index</title> <title>P-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>
@ -105,6 +105,11 @@
<dd> <dd>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>.</div> <div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#PacketLoader-com.captainalm.lib.stdcrypt.digest.DigestProvider-boolean-">PacketLoader(DigestProvider, boolean)</a></span> - Constructor for class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Constructs a new Packet loader instance with the specified <code>DigestProvider</code>
and if the old packet format should be used.</div>
</dd>
<dt><a href="../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet"><span class="typeNameLink">PacketProtocolInformation</span></a> - Class in <a href="../com/captainalm/lib/calmnet/packet/package-summary.html">com.captainalm.lib.calmnet.packet</a></dt> <dt><a href="../com/captainalm/lib/calmnet/packet/PacketProtocolInformation.html" title="class in com.captainalm.lib.calmnet.packet"><span class="typeNameLink">PacketProtocolInformation</span></a> - Class in <a href="../com/captainalm/lib/calmnet/packet/package-summary.html">com.captainalm.lib.calmnet.packet</a></dt>
<dd> <dd>
<div class="block">This class provides the packet protocol information for <a href="../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div> <div class="block">This class provides the packet protocol information for <a href="../com/captainalm/lib/calmnet/packet/IPacket.html" title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>R-Index</title> <title>R-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>
@ -89,6 +89,10 @@
<dd> <dd>
<div class="block">Reads a byte from an <code>InputStream</code>.</div> <div class="block">Reads a byte from an <code>InputStream</code>.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#readByteIntegerFromInputStream-java.io.InputStream-">readByteIntegerFromInputStream(InputStream)</a></span> - Static method in class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Reads a byte (In int form) from an <code>InputStream</code>.</div>
</dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/core/Base64Packet.html#readData-java.io.OutputStream-">readData(OutputStream)</a></span> - Method in class com.captainalm.lib.calmnet.packet.core.<a href="../com/captainalm/lib/calmnet/packet/core/Base64Packet.html" title="class in com.captainalm.lib.calmnet.packet.core">Base64Packet</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/core/Base64Packet.html#readData-java.io.OutputStream-">readData(OutputStream)</a></span> - Method in class com.captainalm.lib.calmnet.packet.core.<a href="../com/captainalm/lib/calmnet/packet/core/Base64Packet.html" title="class in com.captainalm.lib.calmnet.packet.core">Base64Packet</a></dt>
<dd> <dd>
<div class="block">Reads payload data to an <code>OutputStream</code>.</div> <div class="block">Reads payload data to an <code>OutputStream</code>.</div>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>S-Index</title> <title>S-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>
@ -250,6 +250,10 @@
<div class="block">Sets the number of <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#sendPacket--"><code>FragmentReceiver.sendPacket()</code></a> calls, that return null, to a registry entry are made before <div class="block">Sets the number of <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#sendPacket--"><code>FragmentReceiver.sendPacket()</code></a> calls, that return null, to a registry entry are made before
the <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSendCompletePacket.html" title="class in com.captainalm.lib.calmnet.packet.fragment"><code>FragmentSendCompletePacket</code></a> or <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentRetrySendPacket.html" title="class in com.captainalm.lib.calmnet.packet.fragment"><code>FragmentRetrySendPacket</code></a> packets are sent.</div> the <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSendCompletePacket.html" title="class in com.captainalm.lib.calmnet.packet.fragment"><code>FragmentSendCompletePacket</code></a> or <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentRetrySendPacket.html" title="class in com.captainalm.lib.calmnet.packet.fragment"><code>FragmentRetrySendPacket</code></a> packets are sent.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#setOldPacketFormatUsage-boolean-">setOldPacketFormatUsage(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Sets if the old packet format should be used (No explicit hash indication nor length).</div>
</dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setOpenedConsumer-java.util.function.Consumer-">setOpenedConsumer(Consumer&lt;NetMarshalClient&gt;)</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setOpenedConsumer-java.util.function.Consumer-">setOpenedConsumer(Consumer&lt;NetMarshalClient&gt;)</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a></dt>
<dd> <dd>
<div class="block">Sets the <code>Consumer</code> opened consumer.</div> <div class="block">Sets the <code>Consumer</code> opened consumer.</div>
@ -308,19 +312,19 @@
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-">setResponseVerification(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setResponseVerification-boolean-">setResponseVerification(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt>
<dd> <dd>
<div class="block">Sets whether responses should be verified.</div> <div class="block">Sets whether responses should be verified by sending back the payload to be verified.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-">setResponseVerification(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setResponseVerification-boolean-">setResponseVerification(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt>
<dd> <dd>
<div class="block">Sets whether responses should be verified.</div> <div class="block">Sets whether responses should be verified by checking if they are equal.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt>
<dd> <dd>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are expected to be verified.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#setSentDataWillBeAllVerified-boolean-">setSentDataWillBeAllVerified(boolean)</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt>
<dd> <dd>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are verified via resend checks for equality.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/stream/NetworkInputStream.html#setSocket-java.net.Socket-">setSocket(Socket)</a></span> - Method in class com.captainalm.lib.calmnet.stream.<a href="../com/captainalm/lib/calmnet/stream/NetworkInputStream.html" title="class in com.captainalm.lib.calmnet.stream">NetworkInputStream</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/stream/NetworkInputStream.html#setSocket-java.net.Socket-">setSocket(Socket)</a></span> - Method in class com.captainalm.lib.calmnet.stream.<a href="../com/captainalm/lib/calmnet/stream/NetworkInputStream.html" title="class in com.captainalm.lib.calmnet.stream">NetworkInputStream</a></dt>
<dd> <dd>
@ -365,19 +369,19 @@
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt>
<dd> <dd>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are expected to be verified.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--">shouldSentDataBeAllVerified()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt>
<dd> <dd>
<div class="block">Gets whether all sent fragments are verified to be equal.</div> <div class="block">Gets whether all sent fragments are verified via resend checks for equality.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldVerifyResponses--">shouldVerifyResponses()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html#shouldVerifyResponses--">shouldVerifyResponses()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentReceiver.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentReceiver</a></dt>
<dd> <dd>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by sending back the payload to be verified.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldVerifyResponses--">shouldVerifyResponses()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldVerifyResponses--">shouldVerifyResponses()</a></span> - Method in class com.captainalm.lib.calmnet.packet.fragment.<a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html" title="class in com.captainalm.lib.calmnet.packet.fragment">FragmentSender</a></dt>
<dd> <dd>
<div class="block">Gets whether responses should be verified.</div> <div class="block">Gets whether responses should be verified by checking if they are equal.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sslUpgradeClientSide-javax.net.ssl.SSLContext-java.lang.String-">sslUpgradeClientSide(SSLContext, String)</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sslUpgradeClientSide-javax.net.ssl.SSLContext-java.lang.String-">sslUpgradeClientSide(SSLContext, String)</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></dt>
<dd> <dd>
@ -429,6 +433,10 @@
<dd> <dd>
<div class="block">Stops data verification for the specified Packet ID when <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--"><code>FragmentSender.shouldSentDataBeAllVerified()</code></a> is true.</div> <div class="block">Stops data verification for the specified Packet ID when <a href="../com/captainalm/lib/calmnet/packet/fragment/FragmentSender.html#shouldSentDataBeAllVerified--"><code>FragmentSender.shouldSentDataBeAllVerified()</code></a> is true.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#subtractMostSignificantFlag-int-">subtractMostSignificantFlag(int)</a></span> - Static method in class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Subtracts the most significant flag from the given integer.</div>
</dd>
</dl> </dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">H</a>&nbsp;<a href="index-9.html">I</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">O</a>&nbsp;<a href="index-14.html">P</a>&nbsp;<a href="index-15.html">R</a>&nbsp;<a href="index-16.html">S</a>&nbsp;<a href="index-17.html">U</a>&nbsp;<a href="index-18.html">V</a>&nbsp;<a href="index-19.html">W</a>&nbsp;</div> <a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">H</a>&nbsp;<a href="index-9.html">I</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">O</a>&nbsp;<a href="index-14.html">P</a>&nbsp;<a href="index-15.html">R</a>&nbsp;<a href="index-16.html">S</a>&nbsp;<a href="index-17.html">U</a>&nbsp;<a href="index-18.html">V</a>&nbsp;<a href="index-19.html">W</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>U-Index</title> <title>U-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>V-Index</title> <title>V-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>W-Index</title> <title>W-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>B-Index</title> <title>B-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>C-Index</title> <title>C-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>D-Index</title> <title>D-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>E-Index</title> <title>E-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>F-Index</title> <title>F-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>G-Index</title> <title>G-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>H-Index</title> <title>H-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>I-Index</title> <title>I-Index</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script> <script type="text/javascript" src="../script.js"></script>
</head> </head>
@ -130,6 +130,10 @@
<dd> <dd>
<div class="block">Gets if the internal cache is used.</div> <div class="block">Gets if the internal cache is used.</div>
</dd> </dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html#isOldPacketFormatInUse--">isOldPacketFormatInUse()</a></span> - Method in class com.captainalm.lib.calmnet.packet.<a href="../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></dt>
<dd>
<div class="block">Is the old packet format in use (No explicit hash indication nor length).</div>
</dd>
<dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#isRunning--">isRunning()</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></dt> <dt><span class="memberNameLink"><a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#isRunning--">isRunning()</a></span> - Method in class com.captainalm.lib.calmnet.marshal.<a href="../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></dt>
<dd> <dd>
<div class="block">Gets if the marshal is running.</div> <div class="block">Gets if the marshal is running.</div>

View File

@ -2,7 +2,7 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Generated Documentation (Untitled)</title> <title>Generated Documentation (Untitled)</title>
<script type="text/javascript"> <script type="text/javascript">
tmpTargetPage = "" + window.location.search; tmpTargetPage = "" + window.location.search;

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:49 BST 2023 -->
<title>Overview List</title> <title>Overview List</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Overview</title> <title>Overview</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Class Hierarchy</title> <title>Class Hierarchy</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -2,9 +2,9 @@
<!-- NewPage --> <!-- NewPage -->
<html lang="en"> <html lang="en">
<head> <head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:22 BST 2023 --> <!-- Generated by javadoc (1.8.0_262) on Sun Jun 11 02:31:50 BST 2023 -->
<title>Serialized Form</title> <title>Serialized Form</title>
<meta name="date" content="2023-05-23"> <meta name="date" content="2023-06-11">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</head> </head>

View File

@ -18,7 +18,7 @@ public final class FragmentationOptions {
* See: * See:
* {@link FragmentSender#setSplitSize(int)} * {@link FragmentSender#setSplitSize(int)}
*/ */
public int fragmentationSplitSize = 496; public int fragmentationSplitSize = 448;
/** /**
* See: * See:
* {@link FragmentReceiver#setNumberOfEmptySendsTillForcedCompleteOrResend(int)} * {@link FragmentReceiver#setNumberOfEmptySendsTillForcedCompleteOrResend(int)}

View File

@ -18,6 +18,7 @@ import java.net.InetAddress;
import java.net.MulticastSocket; import java.net.MulticastSocket;
import java.net.Socket; import java.net.Socket;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Queue; import java.util.Queue;
@ -100,21 +101,27 @@ public class NetMarshalClient implements Closeable {
fragmentSMM = new HashMap<>(); fragmentSMM = new HashMap<>();
fragmentMonitorThread = new Thread(() -> { fragmentMonitorThread = new Thread(() -> {
int ageCheckTime = this.fragmentationOptions.maximumFragmentAge - 1; int ageCheckTime = this.fragmentationOptions.maximumFragmentAge - 1;
ArrayList<Integer> idsToRemove = new ArrayList<>();
while (running) { while (running) {
int id = -1;
synchronized (this.fragmentationOptions) { synchronized (this.fragmentationOptions) {
for (int c : fragmentRMM.keySet()) { for (int c : fragmentRMM.keySet()) {
if (!fragmentRMM.get(c).plusSeconds(ageCheckTime).isAfter(LocalDateTime.now())) { if (!fragmentRMM.get(c).plusSeconds(ageCheckTime).isAfter(LocalDateTime.now()))
fragmentRMM.remove(id); idsToRemove.add(c);
fragmentReceiver.deletePacketFromRegistry(c);
}
} }
for (int c : idsToRemove) {
fragmentRMM.remove(c);
fragmentReceiver.deletePacketFromRegistry(c);
}
idsToRemove.clear();
for (int c : fragmentSMM.keySet()) { for (int c : fragmentSMM.keySet()) {
if (!fragmentSMM.get(c).plusSeconds(ageCheckTime).isAfter(LocalDateTime.now())) { if (!fragmentSMM.get(c).plusSeconds(ageCheckTime).isAfter(LocalDateTime.now()))
fragmentSMM.remove(id); idsToRemove.add(c);
fragmentSender.deletePacketFromRegistry(c);
}
} }
for (int c : idsToRemove) {
fragmentSMM.remove(c);
fragmentSender.deletePacketFromRegistry(c);
}
idsToRemove.clear();
} }
try { try {
Thread.sleep(this.fragmentationOptions.maximumFragmentAge); Thread.sleep(this.fragmentationOptions.maximumFragmentAge);
@ -127,8 +134,8 @@ public class NetMarshalClient implements Closeable {
fragmentSMM.clear(); fragmentSMM.clear();
}, "thread_frag_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort); }, "thread_frag_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
fragmentFinishReceiveMonitorThread = new Thread(() -> { fragmentFinishReceiveMonitorThread = new Thread(() -> {
int id = -1;
while (running) { while (running) {
int id = -1;
try { try {
while ((id = fragmentReceiver.getLastIDFinished()) != -1) synchronized (this.fragmentationOptions) { while ((id = fragmentReceiver.getLastIDFinished()) != -1) synchronized (this.fragmentationOptions) {
fragmentRMM.remove(id); fragmentRMM.remove(id);
@ -139,8 +146,8 @@ public class NetMarshalClient implements Closeable {
fragmentReceiver.clearLastIDFinished(); fragmentReceiver.clearLastIDFinished();
}, "thread_frag_fin_recv_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort); }, "thread_frag_fin_recv_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
fragmentFinishSendMonitorThread = new Thread(() -> { fragmentFinishSendMonitorThread = new Thread(() -> {
int id = -1;
while (running) { while (running) {
int id = -1;
try { try {
while ((id = fragmentSender.getLastIDFinished()) != -1) synchronized (this.fragmentationOptions) { while ((id = fragmentSender.getLastIDFinished()) != -1) synchronized (this.fragmentationOptions) {
fragmentSMM.remove(id); fragmentSMM.remove(id);

View File

@ -23,24 +23,41 @@ import static com.captainalm.lib.calmnet.packet.PacketProtocolInformation.savePa
public class PacketLoader { public class PacketLoader {
protected boolean allowInvalidPackets; protected boolean allowInvalidPackets;
protected boolean oldPacketFormat;
/** /**
* Constructs a new Packet loader instance. * Constructs a new Packet loader instance.
* If using a digest provider, use {@link #PacketLoader(DigestProvider)} * If using a digest provider, use {@link #PacketLoader(DigestProvider)}
*/ */
public PacketLoader() { public PacketLoader() {
this(null); this(null, false);
} }
/** /**
* Constructs a new Packet loader instance with the specified {@link DigestProvider}. * Constructs a new Packet loader instance with the specified {@link DigestProvider}.
* If using a digest provider, make sure all endpoints use the same algorithm; * If using a digest provider, make sure all endpoints use the same algorithm;
* if null, no trailer is created or expected; * if null, no trailer is created;
* this is ignored if saving / loading packets from byte arrays. * this is ignored if saving / loading packets from byte arrays.
* *
* @param provider The digest provider or null. * @param provider The digest provider or null.
*/ */
public PacketLoader(DigestProvider provider) { public PacketLoader(DigestProvider provider) {
this(provider, false);
}
/**
* Constructs a new Packet loader instance with the specified {@link DigestProvider}
* and if the old packet format should be used.
* If using a digest provider, make sure all endpoints use the same algorithm;
* if null, no trailer is created;
* this is ignored if saving / loading packets from byte arrays.
*
* @param provider The digest provider or null.
* @param oldPacketFormat If the old packet format should be used (No explicit hash indication nor length).
*/
public PacketLoader(DigestProvider provider, boolean oldPacketFormat) {
hashProvider = provider; hashProvider = provider;
this.oldPacketFormat = oldPacketFormat;
} }
protected DigestProvider hashProvider; protected DigestProvider hashProvider;
@ -72,10 +89,51 @@ public class PacketLoader {
this.allowInvalidPackets = allowInvalidPackets; this.allowInvalidPackets = allowInvalidPackets;
} }
/**
* Is the old packet format in use (No explicit hash indication nor length).
*
* @return If the old packet format is in use.
*/
public boolean isOldPacketFormatInUse() {
return oldPacketFormat;
}
/**
* Sets if the old packet format should be used (No explicit hash indication nor length).
* @param useOldFormat If the old packet format should be used.
*/
public void setOldPacketFormatUsage(boolean useOldFormat) {
oldPacketFormat = useOldFormat;
}
protected boolean isPacketInvalid(IPacket packetIn) { protected boolean isPacketInvalid(IPacket packetIn) {
return (packetIn == null || !packetIn.isValid()) && !allowInvalidPackets; return (packetIn == null || !packetIn.isValid()) && !allowInvalidPackets;
} }
/**
* Adds the most significant flag to the given integer.
*
* @param value The integer to add the flag to.
* @return The integer with the flag added.
*/
public static int addMostSignificantFlag(int value) {
value += 1;
value += Integer.MAX_VALUE;
return value;
}
/**
* Subtracts the most significant flag from the given integer.
*
* @param value The integer to subtract the flag from.
* @return The integer with the flag subtracted.
*/
public static int subtractMostSignificantFlag(int value) {
value -= 1;
value -= Integer.MAX_VALUE;
return value;
}
/** /**
* Reads a {@link IPacket} from a byte array (No digest support). * Reads a {@link IPacket} from a byte array (No digest support).
* If the information parameter is null, this is obtained as part of the reading. * If the information parameter is null, this is obtained as part of the reading.
@ -102,8 +160,9 @@ public class PacketLoader {
if (toret != null) { if (toret != null) {
if (arrayIn.length < 6) throw new PacketException("arrayIn does not have a length header."); if (arrayIn.length < 6) throw new PacketException("arrayIn does not have a length header.");
int length = (arrayIn[2] & 0xff) * 16777216 + (arrayIn[3] & 0xff) * 65536 + (arrayIn[4] & 0xff) * 256 + (arrayIn[5] & 0xff); int length = (arrayIn[2] & 0xff) * 16777216 + (arrayIn[3] & 0xff) * 65536 + (arrayIn[4] & 0xff) * 256 + (arrayIn[5] & 0xff);
if (length < 0) length = subtractMostSignificantFlag(length);
byte[] loadArray = new byte[length]; byte[] loadArray = new byte[length];
System.arraycopy(arrayIn, 6, loadArray, 0, arrayIn.length - 6); System.arraycopy(arrayIn, 6, loadArray, 0, Math.min(arrayIn.length - 6, length));
toret.loadPayload(loadArray); toret.loadPayload(loadArray);
if (isPacketInvalid(toret)) toret = null; if (isPacketInvalid(toret)) toret = null;
} }
@ -131,9 +190,23 @@ public class PacketLoader {
IPacket toret = factory.getPacket(information); IPacket toret = factory.getPacket(information);
if (toret != null) { if (toret != null) {
InputStream lIS = (hashProvider == null) ? inputStream : hashProvider.getDigestInputStream(inputStream); int length = readInteger(inputStream);
byte[] loadArray = readArrayFromInputStream(lIS, readInteger(inputStream)); boolean hasHash = length < 0;
if (hashProvider == null || DigestComparer.compareDigests(inputStream, ((DigestInputStream) lIS).getMessageDigest().digest())) toret.loadPayload(loadArray); if (hasHash) length = subtractMostSignificantFlag(length);
InputStream lIS = (hashProvider == null || !hasHash) ? inputStream : hashProvider.getDigestInputStream(inputStream);
byte[] loadArray = readArrayFromInputStream(lIS, length);
int hashLength;
if (hasHash) {
hashLength = readByteIntegerFromInputStream(inputStream);
if (hashProvider != null && hashProvider.getLength() != hashLength) {
readArrayFromInputStream(inputStream, hashLength);
return null;
}
} else hashLength = 0;
if ((!hasHash && !oldPacketFormat) || hashProvider == null) {
readArrayFromInputStream(inputStream, hashLength);
toret.loadPayload(loadArray);
} else if (DigestComparer.compareDigests(inputStream, ((DigestInputStream) lIS).getMessageDigest().digest())) toret.loadPayload(loadArray);
if (isPacketInvalid(toret)) toret = null; if (isPacketInvalid(toret)) toret = null;
} }
return toret; return toret;
@ -161,7 +234,9 @@ public class PacketLoader {
IPacket toret = factory.getPacket(information); IPacket toret = factory.getPacket(information);
if (toret != null) { if (toret != null) {
byte[] loadArray = readArrayFromInputStream(inputStream, readInteger(inputStream)); int length = readInteger(inputStream);
if (length < 0) length = subtractMostSignificantFlag(length);
byte[] loadArray = readArrayFromInputStream(inputStream, length);
toret.loadPayload(loadArray); toret.loadPayload(loadArray);
if (isPacketInvalid(toret)) toret = null; if (isPacketInvalid(toret)) toret = null;
} }
@ -191,9 +266,21 @@ public class PacketLoader {
if (toret instanceof IStreamedPacket) { if (toret instanceof IStreamedPacket) {
int length = readInteger(inputStream); int length = readInteger(inputStream);
InputStream lIS = (hashProvider == null) ? inputStream : hashProvider.getDigestInputStream(inputStream); boolean hasHash = length < 0;
if (hasHash) length = subtractMostSignificantFlag(length);
InputStream lIS = (hashProvider == null || !hasHash) ? inputStream : hashProvider.getDigestInputStream(inputStream);
((IStreamedPacket) toret).writeData(lIS, length); ((IStreamedPacket) toret).writeData(lIS, length);
if (hashProvider != null && !DigestComparer.compareDigests(inputStream, ((DigestInputStream) lIS).getMessageDigest().digest())) toret = null; int hashLength;
if (hasHash) {
hashLength = readByteIntegerFromInputStream(inputStream);
if (hashProvider != null && hashProvider.getLength() != hashLength) {
readArrayFromInputStream(inputStream, hashLength);
return null;
}
} else hashLength = 0;
if ((hasHash || oldPacketFormat) && hashProvider != null) {
if (!DigestComparer.compareDigests(inputStream, ((DigestInputStream) lIS).getMessageDigest().digest())) toret = null;
} else readArrayFromInputStream(inputStream, hashLength);
if (isPacketInvalid(toret)) toret = null; if (isPacketInvalid(toret)) toret = null;
} else if (toret != null) { } else if (toret != null) {
return readPacket(inputStream, factory, information); return readPacket(inputStream, factory, information);
@ -225,6 +312,7 @@ public class PacketLoader {
if (toret instanceof IStreamedPacket) { if (toret instanceof IStreamedPacket) {
int length = readInteger(inputStream); int length = readInteger(inputStream);
if (length < 0) length = subtractMostSignificantFlag(length);
((IStreamedPacket) toret).writeData(inputStream, length); ((IStreamedPacket) toret).writeData(inputStream, length);
if (isPacketInvalid(toret)) toret = null; if (isPacketInvalid(toret)) toret = null;
} else if (toret != null) { } else if (toret != null) {
@ -239,6 +327,7 @@ public class PacketLoader {
* *
* @param packet The packet to save. * @param packet The packet to save.
* @param writeInformation Write the {@link PacketProtocolInformation} to the beginning of the array. * @param writeInformation Write the {@link PacketProtocolInformation} to the beginning of the array.
* @return The written packet data as a byte array.
* @throws NullPointerException A parameter is null. * @throws NullPointerException A parameter is null.
* @throws PacketException An Exception has occurred. * @throws PacketException An Exception has occurred.
*/ */
@ -286,15 +375,25 @@ public class PacketLoader {
if (writeInformation) savePacketProtocolInformation(outputStream, packet.getProtocol()); if (writeInformation) savePacketProtocolInformation(outputStream, packet.getProtocol());
if (packet instanceof IStreamedPacket) { if (packet instanceof IStreamedPacket) {
writeInteger(outputStream, ((IStreamedPacket) packet).getSize()); int pLength = ((IStreamedPacket) packet).getSize();
if (hashProvider != null && !oldPacketFormat) pLength = addMostSignificantFlag(pLength);
writeInteger(outputStream, pLength);
OutputStream lOS = (hashProvider == null) ? outputStream : hashProvider.getDigestOutputStream(outputStream); OutputStream lOS = (hashProvider == null) ? outputStream : hashProvider.getDigestOutputStream(outputStream);
((IStreamedPacket) packet).readData(lOS); ((IStreamedPacket) packet).readData(lOS);
if (hashProvider != null) outputStream.write(((DigestOutputStream) lOS).getMessageDigest().digest()); if (hashProvider != null) {
if (!oldPacketFormat) outputStream.write(hashProvider.getLength());
outputStream.write(((DigestOutputStream) lOS).getMessageDigest().digest());
}
} else { } else {
byte[] saveArray = packet.savePayload(); byte[] saveArray = packet.savePayload();
writeInteger(outputStream, saveArray.length); int pLength = saveArray.length;
if (hashProvider != null && !oldPacketFormat) pLength = addMostSignificantFlag(pLength);
writeInteger(outputStream, pLength);
outputStream.write(saveArray); outputStream.write(saveArray);
if (hashProvider != null) outputStream.write(hashProvider.getDigestOf(saveArray)); if (hashProvider != null) {
if (!oldPacketFormat) outputStream.write(hashProvider.getLength());
outputStream.write(hashProvider.getDigestOf(saveArray));
}
} }
outputStream.flush(); outputStream.flush();
} }
@ -338,10 +437,10 @@ public class PacketLoader {
*/ */
public static int readInteger(InputStream inputStream) throws IOException { public static int readInteger(InputStream inputStream) throws IOException {
if (inputStream == null) throw new NullPointerException("inputStream is null"); if (inputStream == null) throw new NullPointerException("inputStream is null");
int length = (readByteFromInputStream(inputStream) & 0xff) * 16777216; int length = readByteIntegerFromInputStream(inputStream)* 16777216;
length += (readByteFromInputStream(inputStream) & 0xff) * 65536; length += readByteIntegerFromInputStream(inputStream) * 65536;
length += (readByteFromInputStream(inputStream) & 0xff) * 256; length += readByteIntegerFromInputStream(inputStream) * 256;
length += (readByteFromInputStream(inputStream) & 0xff); length += readByteIntegerFromInputStream(inputStream);
return length; return length;
} }
@ -351,13 +450,13 @@ public class PacketLoader {
* @param outputStream The output stream to use. * @param outputStream The output stream to use.
* @param i The integer to store. * @param i The integer to store.
* @throws NullPointerException outputStream is null. * @throws NullPointerException outputStream is null.
* @throws IllegalArgumentException i is less than 0.
* @throws IOException An I/O error has occurred. * @throws IOException An I/O error has occurred.
*/ */
public static void writeInteger(OutputStream outputStream, int i) throws IOException { public static void writeInteger(OutputStream outputStream, int i) throws IOException {
if (outputStream == null) throw new NullPointerException("outputStream is null"); if (outputStream == null) throw new NullPointerException("outputStream is null");
if (i < 0) throw new IllegalArgumentException("i is less than 0"); boolean neg = i < 0;
outputStream.write(i / 16777216); if (i < 0) i = -(Integer.MIN_VALUE - i);
outputStream.write((i / 16777216) + ((neg) ? 128 : 0));
i %= 16777216; i %= 16777216;
outputStream.write(i / 65536); outputStream.write(i / 65536);
i %= 65536; i %= 65536;
@ -368,6 +467,7 @@ public class PacketLoader {
/** /**
* Reads a byte from an {@link InputStream}. * Reads a byte from an {@link InputStream}.
* See also: {@link #readByteIntegerFromInputStream(InputStream)}.
* *
* @param inputStream The input stream to read from. * @param inputStream The input stream to read from.
* @return The byte read. * @return The byte read.
@ -381,6 +481,22 @@ public class PacketLoader {
return (byte) toret; return (byte) toret;
} }
/**
* Reads a byte (In int form) from an {@link InputStream}.
* See also: {@link #readByteFromInputStream(InputStream)}.
*
* @param inputStream The input stream to read from.
* @return The byte read (As an int).
* @throws NullPointerException inputStream is null.
* @throws IOException An I/O error has occurred or end of stream has been reached.
*/
public static int readByteIntegerFromInputStream(InputStream inputStream) throws IOException {
if (inputStream == null) throw new NullPointerException("inputStream is null");
int toret;
if ((toret = inputStream.read()) == -1) throw new IOException("inputStream end of stream");
return toret;
}
/** /**
* Reads in a byte array of a specified length from an {@link InputStream}. * Reads in a byte array of a specified length from an {@link InputStream}.
* *
@ -406,12 +522,12 @@ public class PacketLoader {
* *
* @param i The integer to save. * @param i The integer to save.
* @return The byte array. * @return The byte array.
* @throws IllegalArgumentException i is less than 0.
*/ */
public static byte[] getByteArrayFromInteger(int i) { public static byte[] getByteArrayFromInteger(int i) {
if (i < 0) throw new IllegalArgumentException("i is less than 0"); boolean neg = i < 0;
if (i < 0) i = -(Integer.MIN_VALUE - i);
byte[] toret = new byte[4]; byte[] toret = new byte[4];
toret[0] = (byte) (i / 16777216); toret[0] = (byte) ((i / 16777216) + ((neg) ? 128 : 0));
i %= 16777216; i %= 16777216;
toret[1] = (byte) (i / 65536); toret[1] = (byte) (i / 65536);
i %= 65536; i %= 65536;

View File

@ -12,7 +12,7 @@ import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import static com.captainalm.lib.calmnet.packet.PacketLoader.readByteFromInputStream; import static com.captainalm.lib.calmnet.packet.PacketLoader.readByteIntegerFromInputStream;
/** /**
* This class provides an encrypted packet that can hold an {@link IPacket}. * This class provides an encrypted packet that can hold an {@link IPacket}.
@ -84,6 +84,7 @@ public class EncryptedPacket implements IStreamedPacket, IInternalCache {
* @param factory The packet factory to use. * @param factory The packet factory to use.
* @param loader The Packet Loader to use. * @param loader The Packet Loader to use.
* @param cipherFactory The cipher factory to use. * @param cipherFactory The cipher factory to use.
* @param packet The packet to use.
* @throws NullPointerException factory, loader or cipherFactory is null. * @throws NullPointerException factory, loader or cipherFactory is null.
*/ */
public EncryptedPacket(IPacketFactory factory, PacketLoader loader, ICipherFactory cipherFactory, IPacket packet) { public EncryptedPacket(IPacketFactory factory, PacketLoader loader, ICipherFactory cipherFactory, IPacket packet) {
@ -97,6 +98,7 @@ public class EncryptedPacket implements IStreamedPacket, IInternalCache {
* @param factory The packet factory to use. * @param factory The packet factory to use.
* @param loader The Packet Loader to use. * @param loader The Packet Loader to use.
* @param cipherFactory The cipher factory to use. * @param cipherFactory The cipher factory to use.
* @param packet The packet to use.
* @param useCache If the encrypted data should be cached. * @param useCache If the encrypted data should be cached.
* @throws NullPointerException factory, loader or cipherFactory is null. * @throws NullPointerException factory, loader or cipherFactory is null.
*/ */
@ -358,7 +360,7 @@ public class EncryptedPacket implements IStreamedPacket, IInternalCache {
if (size < 0) throw new IllegalArgumentException("size is less than 0"); if (size < 0) throw new IllegalArgumentException("size is less than 0");
synchronized (slock) { synchronized (slock) {
if (size < 1) throw new IOException("inputStream end of stream"); if (size < 1) throw new IOException("inputStream end of stream");
int flag = readByteFromInputStream(inputStream) & 0xff; int flag = readByteIntegerFromInputStream(inputStream);
if (size < 5) throw new IOException("inputStream end of stream"); if (size < 5) throw new IOException("inputStream end of stream");
int cipherLenCache = PacketLoader.readInteger(inputStream); int cipherLenCache = PacketLoader.readInteger(inputStream);
@ -380,7 +382,7 @@ public class EncryptedPacket implements IStreamedPacket, IInternalCache {
trailingArrayLengthCache = 0; trailingArrayLengthCache = 0;
if ((flag & 1) == 1) { if ((flag & 1) == 1) {
if (size < 9 + cipherLenCache) throw new IOException("inputStream end of stream"); if (size < 9 + cipherLenCache) throw new IOException("inputStream end of stream");
trailingArrayLengthCache = PacketLoader.readByteFromInputStream(inputStream); trailingArrayLengthCache = PacketLoader.readByteIntegerFromInputStream(inputStream);
if (trailingArrayLengthCache < 1) throw new PacketException("trailer length less than 1"); if (trailingArrayLengthCache < 1) throw new PacketException("trailer length less than 1");
} }

View File

@ -283,19 +283,19 @@ public final class FragmentReceiver {
} }
/** /**
* Gets whether responses should be verified. * Gets whether responses should be verified by sending back the payload to be verified.
* *
* @return Should responses be verified. * @return Should responses be verified by sending back the payload.
*/ */
public boolean shouldVerifyResponses() { public boolean shouldVerifyResponses() {
return verifyResponses; return verifyResponses;
} }
/** /**
* Sets whether responses should be verified. * Sets whether responses should be verified by sending back the payload to be verified.
* If set to false, {@link #setSentDataWillBeAllVerified(boolean)} will be set to false too. * If set to false, {@link #setSentDataWillBeAllVerified(boolean)} will be set to false too.
* *
* @param state If responses should be verified. * @param state If responses should be verified by sending back the payload.
*/ */
public void setResponseVerification(boolean state) { public void setResponseVerification(boolean state) {
synchronized (slock) { synchronized (slock) {
@ -305,19 +305,19 @@ public final class FragmentReceiver {
} }
/** /**
* Gets whether all sent fragments are verified to be equal. * Gets whether all sent fragments are expected to be verified.
* *
* @return If all sent fragments will be verified to be equal. * @return If all sent fragments are expected to be verified.
*/ */
public boolean shouldSentDataBeAllVerified() { public boolean shouldSentDataBeAllVerified() {
return makeSureSendDataVerified; return makeSureSendDataVerified;
} }
/** /**
* Gets whether all sent fragments are verified to be equal. * Gets whether all sent fragments are expected to be verified.
* Requires {@link #setResponseVerification(boolean)} set to true. * Requires {@link #setResponseVerification(boolean)} set to true.
* *
* @param state If all sent fragments will be verified to be equal. * @param state If all sent fragments are expected to be verified.
*/ */
public void setSentDataWillBeAllVerified(boolean state) { public void setSentDataWillBeAllVerified(boolean state) {
synchronized (slock) { synchronized (slock) {

View File

@ -18,7 +18,7 @@ public final class FragmentSender {
private final HashMap<Integer, FragmentOutput> registry = new HashMap<>(); private final HashMap<Integer, FragmentOutput> registry = new HashMap<>();
private final Object slock = new Object(); private final Object slock = new Object();
private final Object slockfinish = new Object(); private final Object slockfinish = new Object();
private int splitSize = 496; private int splitSize = 448;
private PacketLoader packetLoader; private PacketLoader packetLoader;
private boolean verifyResponses = false; private boolean verifyResponses = false;
private boolean makeSureSendDataVerified = false; private boolean makeSureSendDataVerified = false;
@ -249,7 +249,7 @@ public final class FragmentSender {
} }
/** /**
* Gets whether responses should be verified. * Gets whether responses should be verified by checking if they are equal.
* *
* @return Should responses be verified. * @return Should responses be verified.
*/ */
@ -258,7 +258,7 @@ public final class FragmentSender {
} }
/** /**
* Sets whether responses should be verified. * Sets whether responses should be verified by checking if they are equal.
* If set to false, {@link #setSentDataWillBeAllVerified(boolean)} will be set to false too. * If set to false, {@link #setSentDataWillBeAllVerified(boolean)} will be set to false too.
* *
* @param state If responses should be verified. * @param state If responses should be verified.
@ -271,19 +271,19 @@ public final class FragmentSender {
} }
/** /**
* Gets whether all sent fragments are verified to be equal. * Gets whether all sent fragments are verified via resend checks for equality.
* *
* @return If all sent fragments will be verified to be equal. * @return If all sent fragments will be verified via resend checks for equality.
*/ */
public boolean shouldSentDataBeAllVerified() { public boolean shouldSentDataBeAllVerified() {
return makeSureSendDataVerified; return makeSureSendDataVerified;
} }
/** /**
* Gets whether all sent fragments are verified to be equal. * Gets whether all sent fragments are verified via resend checks for equality.
* Requires {@link #setResponseVerification(boolean)} set to true. * Requires {@link #setResponseVerification(boolean)} set to true.
* *
* @param state If all sent fragments will be verified to be equal. * @param state If all sent fragments will be verified via resend checks for equality.
*/ */
public void setSentDataWillBeAllVerified(boolean state) { public void setSentDataWillBeAllVerified(boolean state) {
synchronized (slock) { synchronized (slock) {