java.lang.Object
java.lang.Thread
net.i2p.util.I2PThread
net.i2p.util.I2PAppThread
net.i2p.i2ptunnel.I2PTunnelHTTPClientRunner.I2PSocketCloser
All Implemented Interfaces:
Runnable
Enclosing class:
I2PTunnelHTTPClientRunner

private class I2PTunnelHTTPClientRunner.I2PSocketCloserextends I2PAppThread
Background thread to close I2P socket without blocking the main thread.
  • Field Details

    • in

      private final InputStream in
      The socket input to drain.
    • out

      private final OutputStream out
      The socket output to close.
    • s

      private final I2PSocket s
      The socket to close.
  • Constructor Details

    • I2PSocketCloser

      public I2PSocketCloser(InputStream i2pin, OutputStream i2pout, I2PSocket i2ps)
      Closes one client socket in the background.
      Parameters:
      i2pin - the socket input to drain
      i2pout - the socket output to close
      i2ps - the socket to close
  • Method Details

    • run

      public void run()
      Description copied from class: I2PThread
      Run the thread, catching and reporting OOM and other failures.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class I2PThread