Class ServerPlanG1

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ServerPlanG1
    extends Plan
    implements java.lang.Runnable
    The server plan starts a thread to accept connections from clients.
    • Field Detail

      • server

        protected java.net.ServerSocket server
        The server socket.
      • logger

        protected java.util.logging.Logger logger
        The logger.
    • Constructor Detail

      • ServerPlanG1

        public ServerPlanG1()
    • Method Detail

      • close

        public void close()
        Close the server.
      • body

        public void body()
        The plan body. This method runs on the plan thread.
        Specified by:
        body in class Plan
      • run

        public void run()
        The server code. This method runs on the separate thread, and repeatedly blocks until a client connects.
        Specified by:
        run in interface java.lang.Runnable
        See Also:
        Runnable