Class NetworkDriverAdapter

All Implemented Interfaces:
NetworkPortAdapter, PortAdapter

Implements SerialNetworkPortAdapter for a network connection.

This connects via a telnet connection. Normally controlled by the NetworkDriverFrame class.

  • Constructor Details

  • Method Details

    • configure

      public void configure()
      Set up all of the other objects to operate connected to this port.
    • resetupConnection

      protected void resetupConnection()
      Called once a reconnect attempt succeeds (this.connect() returned without throwing). The traffic controller's transmit/receive threads were already torn down when the connection was lost (see AbstractMRTrafficController.recovery()/disconnectPort()), so they need to be started again against the fresh socket streams -- connectPort() does both (re-reads getInputStream()/getOutputStream() from this adapter and spawns new transmit/receive threads), the same call configure() made for the original connection.
      Overrides:
      resetupConnection in class AbstractNetworkPortController