Class TCPIPLink.CreateRxStream

java.lang.Object
org.jcsp.net.tcpip.TCPIPLink.CreateRxStream
All Implemented Interfaces:
CSProcess
Enclosing class:
TCPIPLink

private class TCPIPLink.CreateRxStream extends Object implements CSProcess
The process which creates rxStream. It creates an object stream associated with the socket, and listens for the Java object stream header and the PROTOCOL_IDENTIFIER. On success, it sets rxStream in the outer class to a non-null value. If there is an exception, or if the object recieved is not PROTOCOL_IDENTIFIER, it closes the socket and returns without modifying rxStream.
See Also:
  • Constructor Details

    • CreateRxStream

      private CreateRxStream()
  • Method Details

    • run

      public void run()
      The run method.
      Specified by:
      run in interface CSProcess