Class NetUtilsTest.ServerRunnable

java.lang.Object
test.de.iip_ecosphere.platform.support.NetUtilsTest.ServerRunnable
All Implemented Interfaces:
Runnable
Enclosing class:
NetUtilsTest

private class NetUtilsTest.ServerRunnable extends Object implements Runnable
A simple test server runnable, accepting and closing a connection.
Author:
Holger Eichelberger, SSE
  • Field Details

    • port

      private int port
    • running

      private boolean running
  • Constructor Details

    • ServerRunnable

      private ServerRunnable(int port)
      Creates a server runnable.
      Parameters:
      port - the port to listen on
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • stop

      private void stop()
      Stops the server.