Class TCPServer

java.lang.Object
com.inesm.KeyManager.services.TCPServer
All Implemented Interfaces:
Runnable

@Service public class TCPServer extends Object implements Runnable
Provides a TCP Server
  • Constructor Details

    • TCPServer

      @Autowired public TCPServer(CommunicationService comService)
      Constructor method for TCPClientManager.
      Parameters:
      comService - the communication service that will process the resources received over the network.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setup

      public void setup()
      Sets up the TCP Server.

      Will use the socket defined in the application.properties file.

    • stop

      public void stop()
      Closes socket.