Package org.jcsp.net

Class LoopbackLink

  • All Implemented Interfaces:
    CSProcess

    class LoopbackLink
    extends Link
    • Constructor Detail

      • LoopbackLink

        LoopbackLink()
        Constructs a new loopback link for efficient network channels that are on the same JVM.
    • Method Detail

      • runTxRxLoop

        protected void runTxRxLoop()
        Description copied from class: Link
        Performs send and receive actions for the link exchanging data with the peer node. This is called from this class' run method - do not call it directly.
        Overrides:
        runTxRxLoop in class Link
      • getRemoteNodeID

        protected NodeID 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:
        getRemoteNodeID in class Link
        Returns:
        ID of connected computer.