calmnetlib/JavaDoc/com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html

492 lines
38 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_262) on Tue May 23 15:22:21 BST 2023 -->
<title>NetMarshalClientWrapped</title>
<meta name="date" content="2023-05-23">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="NetMarshalClientWrapped";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":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>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html" title="class in com.captainalm.lib.calmnet.marshal"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html" target="_top">Frames</a></li>
<li><a href="NetMarshalClientWrapped.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.captainalm.lib.calmnet.marshal</div>
<h2 title="Class NetMarshalClientWrapped" class="title">Class NetMarshalClientWrapped</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">com.captainalm.lib.calmnet.marshal.NetMarshalClient</a></li>
<li>
<ul class="inheritance">
<li>com.captainalm.lib.calmnet.marshal.NetMarshalClientWrapped</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Closeable, java.lang.AutoCloseable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">NetMarshalClientWrapped</span>
extends <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></pre>
<div class="block">This class provides a managed way of networking on the client side, allows stream wrapping.
Wrapped streams should close the underlying stream when closed.
NOTE: Methods that are synchronised are used here, do NOT use instances of these classes as monitors.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Captain ALM</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#NetMarshalClientWrapped-java.net.DatagramSocket-java.net.InetAddress-int-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">NetMarshalClientWrapped</a></span>(java.net.DatagramSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;remoteAddress,
int&nbsp;remotePort,
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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</code>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <code>InputStream</code>, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#NetMarshalClientWrapped-java.net.DatagramSocket-java.net.InetAddress-int-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">NetMarshalClientWrapped</a></span>(java.net.DatagramSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;remoteAddress,
int&nbsp;remotePort,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</code>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#NetMarshalClientWrapped-java.net.MulticastSocket-java.net.InetAddress-int-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">NetMarshalClientWrapped</a></span>(java.net.MulticastSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;multicastGroupAddress,
int&nbsp;multicastGroupPort,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</code>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>MulticastSocket</code>, multicast group <code>InetAddress</code>, multicast port, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#NetMarshalClientWrapped-java.net.Socket-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">NetMarshalClientWrapped</a></span>(java.net.Socket&nbsp;socketIn,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</code>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>Socket</code>, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#getWrapperInputStream--">getWrapperInputStream</a></span>()</code>
<div class="block">Gets the <code>Function</code> input stream wrapper function.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html#getWrapperOutputStream--">getWrapperOutputStream</a></span>()</code>
<div class="block">Gets the <code>Function</code> output stream wrapper function.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.captainalm.lib.calmnet.marshal.NetMarshalClient">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.captainalm.lib.calmnet.marshal.<a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal">NetMarshalClient</a></h3>
<code><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#arePacketsBeingRead--">arePacketsBeingRead</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#areReceivedPacketsWaiting--">areReceivedPacketsWaiting</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#clearFragmentStorage--">clearFragmentStorage</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#close--">close</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#flush--">flush</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getClosedConsumer--">getClosedConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getFragmentationOptions--">getFragmentationOptions</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getInputStream--">getInputStream</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getOutputStream--">getOutputStream</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getPacketFactory--">getPacketFactory</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getPacketLoader--">getPacketLoader</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getReceiveBiConsumer--">getReceiveBiConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getReceiveExceptionBiConsumer--">getReceiveExceptionBiConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getRootInputStream--">getRootInputStream</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#getRootOutputStream--">getRootOutputStream</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#isRunning--">isRunning</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#isSSLUpgraded--">isSSLUpgraded</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#localAddress--">localAddress</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#localPort--">localPort</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#open--">open</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#receivePacket--">receivePacket</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#receivePacketPolled--">receivePacketPolled</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#remoteAddress--">remoteAddress</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#remotePort--">remotePort</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sendPacket-com.captainalm.lib.calmnet.packet.IPacket-boolean-">sendPacket</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setClosedConsumer-java.util.function.Consumer-">setClosedConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setPacketsShouldBeRead-boolean-">setPacketsShouldBeRead</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveBiConsumer-java.util.function.BiConsumer-">setReceiveBiConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#setReceiveExceptionBiConsumer-java.util.function.BiConsumer-">setReceiveExceptionBiConsumer</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sslUpgradeClientSide-javax.net.ssl.SSLContext-java.lang.String-">sslUpgradeClientSide</a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html#sslUpgradeServerSide-javax.net.ssl.SSLContext-">sslUpgradeServerSide</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="NetMarshalClientWrapped-java.net.Socket-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NetMarshalClientWrapped</h4>
<pre>public&nbsp;NetMarshalClientWrapped(java.net.Socket&nbsp;socketIn,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</pre>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>Socket</code>, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.
Wrapped streams should close the underlying stream when closed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>socketIn</code> - The socket 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>fragmentationOptions</code> - The fragmentation options, null to disable fragmentation.</dd>
<dd><code>inputStreamWrapper</code> - The input stream wrapper to use (Can be null).</dd>
<dd><code>outputStreamWrapper</code> - The output stream wrapper to use (Can be null).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - socketIn, factory or loader is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - Fragmentation options failed validation.</dd>
</dl>
</li>
</ul>
<a name="NetMarshalClientWrapped-java.net.MulticastSocket-java.net.InetAddress-int-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NetMarshalClientWrapped</h4>
<pre>public&nbsp;NetMarshalClientWrapped(java.net.MulticastSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;multicastGroupAddress,
int&nbsp;multicastGroupPort,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)
throws java.io.IOException</pre>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>MulticastSocket</code>, multicast group <code>InetAddress</code>, multicast port, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.
The <code>MulticastSocket</code> will join the multicast group.
Wrapped streams should close the underlying stream when closed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<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>
<dd><code>inputStreamWrapper</code> - The input stream wrapper to use (Can be null).</dd>
<dd><code>outputStreamWrapper</code> - The output stream wrapper to use (Can be null).</dd>
<dt><span class="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>
</dl>
</li>
</ul>
<a name="NetMarshalClientWrapped-java.net.DatagramSocket-java.net.InetAddress-int-java.io.InputStream-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NetMarshalClientWrapped</h4>
<pre>public&nbsp;NetMarshalClientWrapped(java.net.DatagramSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;remoteAddress,
int&nbsp;remotePort,
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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</pre>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <code>InputStream</code>, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.
Wrapped streams should close the underlying stream when closed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>socketIn</code> - The datagram socket to use.</dd>
<dd><code>remoteAddress</code> - The remote address to send data to.</dd>
<dd><code>remotePort</code> - The remote port to send data to.</dd>
<dd><code>inputStream</code> - The receiving input stream.</dd>
<dd><code>factory</code> - The packet factory to use.</dd>
<dd><code>loader</code> - The loader to use.</dd>
<dd><code>fragmentationOptions</code> - The fragmentation options, null to disable fragmentation.</dd>
<dd><code>inputStreamWrapper</code> - The input stream wrapper to use (Can be null).</dd>
<dd><code>outputStreamWrapper</code> - The output stream wrapper to use (Can be null).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - socketIn, remoteAddress, inputStream, factory or loader is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - remotePort is less than 0 or greater than 65535 or fragmentation options failed validation.</dd>
</dl>
</li>
</ul>
<a name="NetMarshalClientWrapped-java.net.DatagramSocket-java.net.InetAddress-int-com.captainalm.lib.calmnet.packet.factory.IPacketFactory-com.captainalm.lib.calmnet.packet.PacketLoader-com.captainalm.lib.calmnet.marshal.FragmentationOptions-java.util.function.Function-java.util.function.Function-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NetMarshalClientWrapped</h4>
<pre>public&nbsp;NetMarshalClientWrapped(java.net.DatagramSocket&nbsp;socketIn,
java.net.InetAddress&nbsp;remoteAddress,
int&nbsp;remotePort,
<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/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet">PacketLoader</a>&nbsp;loader,
<a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal">FragmentationOptions</a>&nbsp;fragmentationOptions,
java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;inputStreamWrapper,
java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;outputStreamWrapper)</pre>
<div class="block">Constructs a new NetMarshalClientWrapped with the specified <code>DatagramSocket</code>, remote <code>InetAddress</code>, remote port, <a href="../../../../../com/captainalm/lib/calmnet/packet/factory/IPacketFactory.html" title="interface in com.captainalm.lib.calmnet.packet.factory"><code>IPacketFactory</code></a>,
<a href="../../../../../com/captainalm/lib/calmnet/packet/PacketLoader.html" title="class in com.captainalm.lib.calmnet.packet"><code>PacketLoader</code></a>, <a href="../../../../../com/captainalm/lib/calmnet/marshal/FragmentationOptions.html" title="class in com.captainalm.lib.calmnet.marshal"><code>FragmentationOptions</code></a>, <code>Function</code> for wrapping the input stream and the <code>Function</code> for wrapping the output stream.
Wrapped streams should close the underlying stream when closed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>socketIn</code> - The datagram socket to use.</dd>
<dd><code>remoteAddress</code> - The remote address to send data to.</dd>
<dd><code>remotePort</code> - The remote port to send data to.</dd>
<dd><code>factory</code> - The packet factory to use.</dd>
<dd><code>loader</code> - The loader to use.</dd>
<dd><code>fragmentationOptions</code> - The fragmentation options, null to disable fragmentation.</dd>
<dd><code>inputStreamWrapper</code> - The input stream wrapper to use (Can be null).</dd>
<dd><code>outputStreamWrapper</code> - The output stream wrapper to use (Can be null).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - socketIn, remoteAddress, factory or loader is null.</dd>
<dd><code>java.lang.IllegalArgumentException</code> - remotePort is less than 0 or greater than 65535 or fragmentation options failed validation.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getWrapperInputStream--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWrapperInputStream</h4>
<pre>public&nbsp;java.util.function.Function&lt;java.io.InputStream,java.io.InputStream&gt;&nbsp;getWrapperInputStream()</pre>
<div class="block">Gets the <code>Function</code> input stream wrapper function.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The input stream wrapper function or null.</dd>
</dl>
</li>
</ul>
<a name="getWrapperOutputStream--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getWrapperOutputStream</h4>
<pre>public&nbsp;java.util.function.Function&lt;java.io.OutputStream,java.io.OutputStream&gt;&nbsp;getWrapperOutputStream()</pre>
<div class="block">Gets the <code>Function</code> output stream wrapper function.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The output stream wrapper function or null.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalClient.html" title="class in com.captainalm.lib.calmnet.marshal"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/captainalm/lib/calmnet/marshal/NetMarshalServer.html" title="class in com.captainalm.lib.calmnet.marshal"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/captainalm/lib/calmnet/marshal/NetMarshalClientWrapped.html" target="_top">Frames</a></li>
<li><a href="NetMarshalClientWrapped.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>