Class SocketKeepAlive

java.lang.Object
it.polimi.ingsw.Server.SocketKeepAlive

public class SocketKeepAlive extends Object
Application-level KeepAlive implementation
  • Field Details

  • Constructor Details

    • SocketKeepAlive

      public SocketKeepAlive(Socket socket, GameController gc)
      Naive Application-level KeepAlive implementation
      Parameters:
      socket - attached to the client
      gc - related to the client
  • Method Details

    • received

      public void received()
      Sets the KeepAlive as received (setting the correspondent flag), the next scheduled task to run will get the flag as valid and reset the CDL
    • closed

      public boolean closed()
      Returns:
      status of the Client's socket