Class VNCService

java.lang.Object
de.bytestore.hostinger.process.service.VNCService

@Service @Component("vncService") public class VNCService extends Object
  • Field Details

  • Constructor Details

    • VNCService

      public VNCService()
  • Method Details

    • createSession

      public VNCSession createSession(VNCSocket socketIO)
      Creates a VNC session with the provided VNCSocket. This method initializes and configures a new VNCSession object with the provided VNCSocket.
      Parameters:
      socketIO - the VNCSocket object representing the socket for the session
      Returns:
      the created VNCSession object
    • getSession

      public VNCSession getSession(String tokenIO)
      Retrieves a VNCSession object based on the provided tokenIO.
      Parameters:
      tokenIO - the token corresponding to the VNCSession
      Returns:
      the VNCSession object with the specified tokenIO, or null if not found
    • removeSession

      public void removeSession(String tokenIO)
      Removes a VNC session from the list of sessions based on the provided token.
      Parameters:
      tokenIO - the token corresponding to the VNC session to be removed