Class FileServerThreadPool.FileThread

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.Socket socket
      TCP connection to client
    • Constructor Summary

      Constructors 
      Constructor Description
      FileThread​(java.net.Socket socket)
      the only constructor for this class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      defines the behavior of this Thread instance, will be executed concurrently if start() is called on instance
      • Methods inherited from class java.lang.Object

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

      • socket

        private final java.net.Socket socket
        TCP connection to client
    • Constructor Detail

      • FileThread

        public FileThread​(java.net.Socket socket)
        the only constructor for this class
        Parameters:
        socket - the individual socket that the server created on accepting a client that this EchoThread instance will be communicating with
    • Method Detail

      • run

        public void run()
        defines the behavior of this Thread instance, will be executed concurrently if start() is called on instance
        Specified by:
        run in interface java.lang.Runnable