Class WebSocketServer.WSTransportClientHandler

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    WebSocketServer

    public class WebSocketServer.WSTransportClientHandler
    extends fi.iki.elonen.NanoHTTPD.ClientHandler
    Client handler that disables Nagle's algorithm on the accept socket.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.net.Socket acceptsocket
      The socket.
      protected java.io.InputStream inputstream
      The input stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      WSTransportClientHandler​(java.io.InputStream inputstream, java.net.Socket acceptsocket)
      Creates the handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Run.
      • Methods inherited from class fi.iki.elonen.NanoHTTPD.ClientHandler

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • acceptsocket

        protected java.net.Socket acceptsocket
        The socket.
      • inputstream

        protected java.io.InputStream inputstream
        The input stream.
    • Constructor Detail

      • WSTransportClientHandler

        public WSTransportClientHandler​(java.io.InputStream inputstream,
                                        java.net.Socket acceptsocket)
        Creates the handler.
    • Method Detail

      • run

        public void run()
        Run.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class fi.iki.elonen.NanoHTTPD.ClientHandler