if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="NetMarshalServer";
}
}
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};
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/NetMarshalClientWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServerWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Next Class</span></a></li>
<dd><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServerWrapped.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServerWrapped</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">NetMarshalServer</span>
extends java.lang.Object
implements java.io.Closeable</pre>
<divclass="block">This class provides a way of networking on the server side and holds a collection of <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal"><code>NetMarshalClient</code></a>s.
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 NetMarshalServer with the specified <code>DatagramSocket</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 NetMarshalServer with the specified <code>ServerSocket</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">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#broadcastPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-">broadcastPacket</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">Broadcasts a <ahref="../../../../../com/captainalm/lib/calmnet/packet/IPacket.html"title="interface in com.captainalm.lib.calmnet.packet"><code>IPacket</code></a>.</div>
<divclass="block">Closes the marshal, closing all the connected clients.</div>
</td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></code></td>
<divclass="block">Flushes all the output streams on all the clients.</div>
</td>
</tr>
<trid="i5"class="rowColor">
<tdclass="colFirst"><code>java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>></code></td>
<divclass="block">Gets the <code>BiConsumer</code> accept exception consumer.</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code>java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html"title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>></code></td>
<divclass="block">Gets the <code>BiConsumer</code> client acceptance consumer.</div>
</td>
</tr>
<trid="i7"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="i8"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a>[]</code></td>
<divclass="block">Gets the current set of connected <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal"><code>NetMarshalClient</code></a>s.</div>
</td>
</tr>
<trid="i9"class="rowColor">
<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>
</td>
</tr>
<trid="i10"class="altColor">
<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> opened consumer.</div>
</td>
</tr>
<trid="i11"class="rowColor">
<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="i12"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="i13"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="i14"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>
<divclass="block">Gets the <code>BiConsumer</code> receive exception consumer.</div>
</td>
</tr>
<trid="i15"class="rowColor">
<tdclass="colFirst"><code>java.util.function.BiConsumer<java.net.Socket,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setAcceptExceptionBiConsumer-java.util.function.BiConsumer-">setAcceptExceptionBiConsumer</a></span>(java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</code>
<divclass="block">Sets the <code>BiConsumer</code> accept exception consumer.</div>
</td>
</tr>
<trid="i21"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setClientAcceptanceBiConsumer-java.util.function.BiConsumer-">setClientAcceptanceBiConsumer</a></span>(java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html"title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</code>
<divclass="block">Sets the <code>BiConsumer</code> client acceptance consumer.</div>
</td>
</tr>
<trid="i22"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.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>
</td>
</tr>
<trid="i23"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setOpenedConsumer-java.util.function.Consumer-">setOpenedConsumer</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> opened consumer.</div>
</td>
</tr>
<trid="i24"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.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="i25"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.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>
</td>
</tr>
<trid="i26"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html#setSocketSetupBiConsumer-java.util.function.BiConsumer-">setSocketSetupBiConsumer</a></span>(java.util.function.BiConsumer<java.net.Socket,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</code>
<divclass="block">Sets the <code>BiConsumer</code> socket setup 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 NetMarshalServer with the specified <code>ServerSocket</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 NetMarshalServer with the specified <code>DatagramSocket</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>
<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>
<divclass="block">Gets the current set of connected <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal"><code>NetMarshalClient</code></a>s.</div>
<pre>public final void broadcastPacket(<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">Broadcasts 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 broadcast.</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 all the output streams on all the clients.</div>
<dl>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - A stream exception has occurred.</dd>
</dl>
</li>
</ul>
<aname="disconnectAll--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>disconnectAll</h4>
<pre>public final void disconnectAll()
throws java.io.IOException</pre>
<divclass="block">Disconnects all the clients (By closing them).</div>
<dl>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - An I/O Exception has occurred.</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/NetMarshalServer.html#broadcastPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-"><code>broadcastPacket(IPacket, boolean)</code></a> or <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.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/NetMarshalServer.html#broadcastPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-"><code>broadcastPacket(IPacket, boolean)</code></a> or <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.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="getAcceptExceptionBiConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getAcceptExceptionBiConsumer</h4>
<pre>public java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> getAcceptExceptionBiConsumer()</pre>
<divclass="block">Gets the <code>BiConsumer</code> accept exception consumer.</div>
<pre>public void setAcceptExceptionBiConsumer(java.util.function.BiConsumer<java.lang.Exception,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</pre>
<divclass="block">Sets the <code>BiConsumer</code> accept 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>
<dd><code>consumer</code> - The new closed consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="getOpenedConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getOpenedConsumer</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>> getOpenedConsumer()</pre>
<divclass="block">Gets the <code>Consumer</code> opened consumer.</div>
<pre>public void setOpenedConsumer(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> opened consumer.</div>
<dd><code>consumer</code> - The new opened consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="getClientAcceptanceBiConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getClientAcceptanceBiConsumer</h4>
<pre>public java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html"title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> getClientAcceptanceBiConsumer()</pre>
<divclass="block">Gets the <code>BiConsumer</code> client acceptance consumer.
Use <ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html#accept"><code>CandidateClient.accept</code></a> to declare whether the candidate should be accepted.</div>
<pre>public void setClientAcceptanceBiConsumer(java.util.function.BiConsumer<<ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html"title="class in com.captainalm.lib.calmnet.marshal">CandidateClient</a>,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</pre>
<divclass="block">Sets the <code>BiConsumer</code> client acceptance consumer.
Use <ahref="../../../../../com/captainalm/lib/calmnet/marshal/CandidateClient.html#accept"><code>CandidateClient.accept</code></a> to declare whether the candidate should be accepted.</div>
<dd><code>consumer</code> - The new acceptance consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="getSocketSetupBiConsumer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getSocketSetupBiConsumer</h4>
<pre>public java.util.function.BiConsumer<java.net.Socket,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> getSocketSetupBiConsumer()</pre>
<divclass="block">Gets the <code>BiConsumer</code> socket setup consumer.</div>
<pre>public void setSocketSetupBiConsumer(java.util.function.BiConsumer<java.net.Socket,<ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalServer</a>> consumer)</pre>
<divclass="block">Sets the <code>BiConsumer</code> socket setup consumer.</div>
<dd><code>consumer</code> - The new setup consumer.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - consumer is null.</dd>
</dl>
</li>
</ul>
<aname="connect-java.net.InetAddress-int-int-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>connect</h4>
<pre>public final <ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html"title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a> connect(java.net.InetAddress remoteAddress,
int remotePort,
int timeout)
throws java.io.IOException</pre>
<divclass="block">Connects to a remote endpoint.</div>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServerWrapped.html"title="class in com.captainalm.lib.calmnet.marshal"><spanclass="typeNameLink">Next Class</span></a></li>