Package org.jcsp.net
Class LoopbackLink
java.lang.Object
org.jcsp.net.Link
org.jcsp.net.LoopbackLink
- All Implemented Interfaces:
CSProcess
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classThe process which recieves from the stream.private classThe process which does transmission to the stream.private static classAn object of this type is used by RxLoop to poison TxLoop. -
Field Summary
FieldsFields inherited from class org.jcsp.net.Link
remoteNodeID, sendNodeID, txChannel -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new loopback link for efficient network channels that are on the same JVM. -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeIDReturns the other computer's ID.protected voidPerforms send and receive actions for the link exchanging data with the peer node.Methods inherited from class org.jcsp.net.Link
addTxFilter, connect, createResources, deliverReceivedObject, destroyResources, equals, exchangeNodeIDs, getPingTime, getProfile, getProtocolID, getReadSequence, getSpecifications, getTxChannel, getTxFilterCount, hashCode, obtainNodeID, performedPingTest, ping, readLinkDecision, readTestObject, removeTxFilter, run, setProfile, setSpecifications, waitForReplies, writeLinkDecision, writeTestObject
-
Field Details
-
loopBack
-
-
Constructor Details
-
LoopbackLink
LoopbackLink()Constructs a new loopback link for efficient network channels that are on the same JVM.
-
-
Method Details
-
runTxRxLoop
protected void runTxRxLoop()Description copied from class:LinkPerforms send and receive actions for the link exchanging data with the peer node. This is called from this class'runmethod - do not call it directly.- Overrides:
runTxRxLoopin classLink
-
getRemoteNodeID
Returns the other computer's ID. This method is safe to call while the process is running, however it will return null if the other computer has not yet identified itself.- Overrides:
getRemoteNodeIDin classLink- Returns:
- ID of connected computer.
-