public class NetAltingConnectionClient extends AltingConnectionClientImpl implements NetConnectionClient
Instances of this class are AltingConnectionClient
objects which connect to ConnectionServer
objects
over a JCSP.NET network.
Instances of this class are not guaranteed to be safe to use
by muliple concurrent processes. See
.
NetSharedAltingConnectionClient
Instances can be constructed by using a
or by
using the NetConnectionFactory
class.
NetConnection
Modifier and Type | Field and Description |
---|---|
private NetAltingChannelInput |
fromServer |
private NetConnectionLocation |
location |
Constructor and Description |
---|
NetAltingConnectionClient(NetAltingChannelInput fromServer,
NetChannelOutput openToServer,
NetChannelOutput reqToServer,
NetChannelOutput backToClient) |
Modifier and Type | Method and Description |
---|---|
(package private) static NetAltingConnectionClient |
create(NetChannelLocation serverLoc) |
void |
destroyClient()
Destroys the client and frees any resources used
in the JCSP.NET infrastructure.
|
NetChannelLocation |
getChannelLocation()
Returns the location of the server.
|
claim, isOpen, release, reply, request
getAltingChannel, pending, setAltingChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOpen, reply, request
private NetAltingChannelInput fromServer
private NetConnectionLocation location
NetAltingConnectionClient(NetAltingChannelInput fromServer, NetChannelOutput openToServer, NetChannelOutput reqToServer, NetChannelOutput backToClient)
static NetAltingConnectionClient create(NetChannelLocation serverLoc)
public NetChannelLocation getChannelLocation()
getChannelLocation
in interface Networked
NetChannelLocation
object.public void destroyClient()
destroyClient
in interface NetConnectionClient