Package org.jcsp.net

Class NetChannelInputProcess

java.lang.Object
org.jcsp.net.NetChannelInputProcess
All Implemented Interfaces:
CSProcess

class NetChannelInputProcess extends Object implements CSProcess
A process for network input (RX).

This is a package-private implementation class.

  • Field Details

  • Constructor Details

    • NetChannelInputProcess

      NetChannelInputProcess(String label, RejectableChannel out)
      Constructor which takes a label to assign to the channel's VCN and a ChannelOutput object on which to output any data received from over the network.
      Parameters:
      label - the label to assign to the VCN. If this is null then no label will be assigned.
      out - the ChannelOutput object on which to forward any data received from over the network.
  • Method Details

    • breakChannel

      void breakChannel()
    • getChannelIndex

      long getChannelIndex()
    • readFromNetChannel

      private Object readFromNetChannel()
      Reads a message from the network communications channel. Acknowledges and ignores LinkLost messages.

      Returns:
      The first Message read from the network.
    • run

      public void run()
      Handle this link. Gets data and sends acknowlegements. Runs forever.
      Specified by:
      run in interface CSProcess