Class TimeoutConf

java.lang.Object
marauroa.common.TimeoutConf

public class TimeoutConf extends Object
This class stores some constants about server timeout values.
Author:
miguel
  • Field Details

    • SOCKET_TIMEOUT

      public static final int SOCKET_TIMEOUT
      This indicates when we stop waiting for the socket. The lower, the slower.
      See Also:
      Constant Field Values
    • UNCOMPLETED_LOGIN_TIMEOUT

      public static final long UNCOMPLETED_LOGIN_TIMEOUT
      It is possible for a player to start login procedure but not complete it with a hacked client and if connection is not closed, that player is taking a "slot" of the game and so disallowing other real players to play.
      See Also:
      Constant Field Values
    • GAMESERVER_MESSAGE_GET_TIMEOUT

      public static final int GAMESERVER_MESSAGE_GET_TIMEOUT
      This indicates how much time we wait for a message to arrive. The lower, the slower.
      See Also:
      Constant Field Values
    • MAX_BYTE_ARRAY_ELEMENTS

      public static final int MAX_BYTE_ARRAY_ELEMENTS
      Maximum size of bytes on a message (256KB)
      See Also:
      Constant Field Values
    • MAX_ARRAY_ELEMENTS

      public static final int MAX_ARRAY_ELEMENTS
      Maximum size of elements on a array (256K)
      See Also:
      Constant Field Values
    • FAILED_LOGIN_ATTEMPTS_ACCOUNT

      public static final int FAILED_LOGIN_ATTEMPTS_ACCOUNT
      The amount of failed login tries before considering the account blocked.
      See Also:
      Constant Field Values
    • FAILED_LOGIN_ATTEMPTS_IP

      public static final int FAILED_LOGIN_ATTEMPTS_IP
      The amount of failed login tries before considering the ip blocked.
      See Also:
      Constant Field Values
    • FAILED_LOGIN_BLOCKTIME

      public static final int FAILED_LOGIN_BLOCKTIME
      The amount of seconds until being able to retry login after N failed attempts.
      See Also:
      Constant Field Values
    • ACCOUNT_CREATION_COUNTINGTIME

      public static final int ACCOUNT_CREATION_COUNTINGTIME
      The timeframe to check when counting account creations.
      See Also:
      Constant Field Values
    • ACCOUNT_CREATION_LIMIT

      public static final int ACCOUNT_CREATION_LIMIT
      The number of accounts that may be created within the timeframe from one ip-address
      See Also:
      Constant Field Values
    • CHARACTER_CREATION_COUNTINGTIME

      public static final int CHARACTER_CREATION_COUNTINGTIME
      The timeframe to check when counting character creations.
      See Also:
      Constant Field Values
    • CHARACTER_CREATION_LIMIT

      public static final int CHARACTER_CREATION_LIMIT
      The number of characters that may be created within the timeframe from one ip-address
      See Also:
      Constant Field Values
    • PARALLEL_CONNECTION_LIMIT

      public static final int PARALLEL_CONNECTION_LIMIT
      The number of parallel connections that may be used from one ip-address.
      See Also:
      Constant Field Values
  • Constructor Details

    • TimeoutConf

      public TimeoutConf()