java.lang.Object
net.i2p.i2pcontrol.SocketController.Handler
All Implemented Interfaces:
Runnable
Enclosing class:
SocketController

private class SocketController.Handlerextends Object implements Runnable
Handles one connected client.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Socket
    The client's socket.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Wraps one accepted socket, whose stream this handler drains.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    run()
    Reads and discards input from the socket until it closes, then deregisters it.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • s

      private final Socket s
      The client's socket.
  • Constructor Details

    • Handler

      public Handler(Socket skt)
      Wraps one accepted socket, whose stream this handler drains.
      Parameters:
      skt - the client's socket
  • Method Details

    • run

      public void run()
      Reads and discards input from the socket until it closes, then deregisters it.
      Specified by:
      run in interface Runnable