Class NetAltingConnectionClient
java.lang.Object
org.jcsp.lang.Guard
org.jcsp.lang.AltingConnectionClient
org.jcsp.lang.AltingConnectionClientImpl
org.jcsp.net.NetAltingConnectionClient
- All Implemented Interfaces:
ConnectionClient, NetConnectionClient, Networked
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNetAltingConnectionClient(NetAltingChannelInput fromServer, NetChannelOutput openToServer, NetChannelOutput reqToServer, NetChannelOutput backToClient) -
Method Summary
Modifier and TypeMethodDescription(package private) static NetAltingConnectionClientcreate(NetChannelLocation serverLoc) voidDestroys the client and frees any resources used in the JCSP.NET infrastructure.Returns the location of the server.Methods inherited from class AltingConnectionClient
getAltingChannel, pending, setAltingChannelMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConnectionClient
isOpen, reply, request
-
Field Details
-
fromServer
-
location
-
-
Constructor Details
-
NetAltingConnectionClient
NetAltingConnectionClient(NetAltingChannelInput fromServer, NetChannelOutput openToServer, NetChannelOutput reqToServer, NetChannelOutput backToClient)
-
-
Method Details
-
create
-
getChannelLocation
Returns the location of the server.- Specified by:
getChannelLocationin interfaceNetworked- Returns:
- the server's
NetChannelLocationobject.
-
destroyClient
public void destroyClient()Destroys the client and frees any resources used in the JCSP.NET infrastructure.- Specified by:
destroyClientin interfaceNetConnectionClient
-