if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="NetMarshalClient";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Next Class</span></a></li>
<dd><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClientWrapped</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">NetMarshalClient</span>
extends java.lang.Object
implements java.io.Closeable</pre>
<divclass="block">This class provides a managed way of networking on the client side.
NOTE: Methods that are synchronised are used here, do NOT use instances of these classes as monitors.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</code>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <code>InputStream</code>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</code>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</code>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>MulticastSocket</code>, multicast group <code>InetAddress</code>, multicast port, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</code>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>Socket</code>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<divclass="block">Are <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s being read.</div>
<divclass="block">Gets if there are received <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s.</div>
<divclass="block">Flushes the output streams.</div>
</td>
</tr>
<trid="i5"class="rowColor">
<tdclass="colFirst"><code>java.util.function.Consumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>></code></td>
<divclass="block">Gets the <code>Consumer</code> closed consumer.</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a></code></td>
<divclass="block">Gets the <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a> of the client.</div>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a></code></td>
<divclass="block">Gets the packet factory in use.</div>
</td>
</tr>
<trid="i10"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a></code></td>
<divclass="block">Gets the packet loader in use.</div>
</td>
</tr>
<trid="i11"class="rowColor">
<tdclass="colFirst"><code>java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>></code></td>
<divclass="block">Gets the <code>BiConsumer</code> receiver consumer.</div>
</td>
</tr>
<trid="i12"class="altColor">
<tdclass="colFirst"><code>java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>></code></td>
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<divclass="block">Receives a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>
</td>
</tr>
<trid="i21"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a></code></td>
<divclass="block">Receives a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> polled.</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sendPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-">sendPacket</a></span>(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packetIn,
boolean directSend)</code>
<divclass="block">Sends a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>
</td>
</tr>
<trid="i25"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setClosedConsumer-java.util.function.Consumer-">setClosedConsumer</a></span>(java.util.function.Consumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</code>
<divclass="block">Sets the <code>Consumer</code> closed consumer.</div>
<divclass="block">Set if <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s should be read.</div>
</td>
</tr>
<trid="i27"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveBiConsumer-java.util.function.BiConsumer-">setReceiveBiConsumer</a></span>(java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</code>
<divclass="block">Sets the <code>BiConsumer</code> receiver consumer.</div>
</td>
</tr>
<trid="i28"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveExceptionBiConsumer-java.util.function.BiConsumer-">setReceiveExceptionBiConsumer</a></span>(java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</code>
<divclass="block">Sets the <code>BiConsumer</code> receive exception consumer.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</pre>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>Socket</code>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)
throws java.io.IOException</pre>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>MulticastSocket</code>, multicast group <code>InetAddress</code>, multicast port, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.
The <code>MulticastSocket</code> will join the multicast group.</div>
<dd><code>socketIn</code> - The multicast socket to use.</dd>
<dd><code>multicastGroupAddress</code> - The multicast group address.</dd>
<dd><code>multicastGroupPort</code> - The multicast group port.</dd>
<dd><code>factory</code> - The packet factory to use.</dd>
<dd><code>loader</code> - The packet loader to use.</dd>
<dd><code>fragmentationOptions</code> - The fragmentation options, null to disable fragmentation.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - There is an error joining or multicastGroupAddress is not a multicast address.</dd>
<dd><code>java.lang.NullPointerException</code> - socketIn, multicastGroupAddress, factory or loader is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - multicastGroupPort is less than 0 or greater than 65535 or fragmentation options failed validation.</dd>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</pre>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <code>InputStream</code>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> factory,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> loader,
<ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> fragmentationOptions)</pre>
<divclass="block">Constructs a new NetMarshalClient with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>, <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a> and <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>.</div>
<divclass="block">Get the root output stream.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Gets the root output stream.</dd>
</dl>
</li>
</ul>
<aname="getPacketFactory--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketFactory</h4>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html"title="interface in com.captainalm.lib.calmnet.packet.factory">IPacketFactory</a> getPacketFactory()</pre>
<divclass="block">Gets the packet factory in use.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The packet factory.</dd>
</dl>
</li>
</ul>
<aname="getPacketLoader--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketLoader</h4>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html"title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a> getPacketLoader()</pre>
<divclass="block">Gets the packet loader in use.</div>
<divclass="block">Gets if the marshal is running.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>If the marshal is running.</dd>
</dl>
</li>
</ul>
<aname="getFragmentationOptions--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getFragmentationOptions</h4>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a> getFragmentationOptions()</pre>
<divclass="block">Gets the <ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a> of the client.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The fragmentation options or null if fragmentation is disabled.</dd>
<pre>public final void sendPacket(<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> packetIn,
boolean directSend)
throws java.io.IOException,
<ahref="../../../../../com/captainalm/lib/calmnet/packet/PacketException.html"title="class in com.captainalm.lib.calmnet.packet">PacketException</a></pre>
<divclass="block">Sends a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>
<dd><code>packetIn</code> - The packet to send.</dd>
<dd><code>directSend</code> - Whether the packet should be sent directly or through the fragmentation system.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - A stream exception has occurred.</dd>
<dd><code><ahref="../../../../../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>java.lang.NullPointerException</code> - packetIn is null.</dd>
</dl>
</li>
</ul>
<aname="flush--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>flush</h4>
<pre>public final void flush()
throws java.io.IOException</pre>
<divclass="block">Flushes the output streams.</div>
<dl>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - A stream exception has occurred.</dd>
<divclass="block">Gets if there are received <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>If there are received packets.</dd>
</dl>
</li>
</ul>
<aname="receivePacket--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>receivePacket</h4>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> receivePacket()
throws java.lang.InterruptedException</pre>
<divclass="block">Receives a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The received packet.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.InterruptedException</code> - A thread interruption has occurred.</dd>
</dl>
</li>
</ul>
<aname="receivePacketPolled--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>receivePacketPolled</h4>
<pre>public <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a> receivePacketPolled()</pre>
<divclass="block">Receives a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a> polled.</div>
<divclass="block">Are <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s being read.</div>
<divclass="block">Set if <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>s should be read.</div>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a>,
java.io.IOException</pre>
<divclass="block">Performs SSL socket upgrades on server side (Use for accepted sockets).
Can only be called when <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setPacketsShouldBeRead-boolean-"><code>setPacketsShouldBeRead(boolean)</code></a> is set to false or in a <code>BiConsumer</code>
consumer for <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveBiConsumer-java.util.function.BiConsumer-"><code>setReceiveBiConsumer(BiConsumer)</code></a>.</div>
<dd><code>context</code> - The SSL context to use.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An SSL Utility exception has occurred.</dd>
<dd><code>java.io.IOException</code> - An I/O Exception has occurred.</dd>
<dd><code>java.lang.NullPointerException</code> - context is null.</dd>
<dd><code>java.lang.IllegalStateException</code> - sslUpgrade methods should be called in a BiConsumer (for setReceiveBiConsumer)
within the target NetMarshalClient or when reading packets (arePacketsBeingRead) is disabled on the NetMarshalClient.</dd>
throws <ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a>,
java.io.IOException</pre>
<divclass="block">Performs SSL socket upgrades on client side (Use for constructed sockets).
Can only be called when <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setPacketsShouldBeRead-boolean-"><code>setPacketsShouldBeRead(boolean)</code></a> is set to false or in a <code>BiConsumer</code>
consumer for <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveBiConsumer-java.util.function.BiConsumer-"><code>setReceiveBiConsumer(BiConsumer)</code></a>.</div>
<dd><code>context</code> - The SSL context to use.</dd>
<dd><code>remoteHostName</code> - The hostname of the remote server.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="../../../../../com/captainalm/lib/calmnet/ssl/SSLUtilityException.html"title="class in com.captainalm.lib.calmnet.ssl">SSLUtilityException</a></code> - An SSL Utility exception has occurred.</dd>
<dd><code>java.io.IOException</code> - An I/O Exception has occurred.</dd>
<dd><code>java.lang.NullPointerException</code> - context or remoteHostName is null.</dd>
<dd><code>java.lang.IllegalStateException</code> - sslUpgrade methods should be called in a BiConsumer (for setReceiveBiConsumer)
within the target NetMarshalClient or when reading packets (arePacketsBeingRead) is disabled on the NetMarshalClient.</dd>
</dl>
</li>
</ul>
<aname="getReceiveBiConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getReceiveBiConsumer</h4>
<pre>public java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> getReceiveBiConsumer()</pre>
<divclass="block">Gets the <code>BiConsumer</code> receiver consumer.
WARNING: Calling <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sendPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-"><code>sendPacket(IPacket, boolean)</code></a> or <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#flush--"><code>flush()</code></a> could cause full buffer hangs.</div>
<pre>public void setReceiveBiConsumer(java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet">IPacket</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</pre>
<divclass="block">Sets the <code>BiConsumer</code> receiver consumer.
WARNING: Calling <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sendPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-"><code>sendPacket(IPacket, boolean)</code></a> or <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#flush--"><code>flush()</code></a> could cause full buffer hangs.</div>
<dd><code>consumer</code> - The new receiver consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="getReceiveExceptionBiConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getReceiveExceptionBiConsumer</h4>
<pre>public java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> getReceiveExceptionBiConsumer()</pre>
<divclass="block">Gets the <code>BiConsumer</code> receive exception consumer.</div>
<pre>public void setReceiveExceptionBiConsumer(java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</pre>
<divclass="block">Sets the <code>BiConsumer</code> receive exception consumer.</div>
<dd><code>consumer</code> - The new exception consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="getClosedConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getClosedConsumer</h4>
<pre>public java.util.function.Consumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> getClosedConsumer()</pre>
<divclass="block">Gets the <code>Consumer</code> closed consumer.</div>
<pre>public void setClosedConsumer(java.util.function.Consumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>> consumer)</pre>
<divclass="block">Sets the <code>Consumer</code> closed consumer.</div>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Next Class</span></a></li>