Package marauroa.common
Class TimeoutConf
java.lang.Object
marauroa.common.TimeoutConf
This class stores some constants about server timeout values.
- Author:
- miguel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe timeframe to check when counting account creations.static intThe number of accounts that may be created within the timeframe from one ip-addressstatic intThe timeframe to check when counting character creations.static intThe number of characters that may be created within the timeframe from one ip-addressstatic intThe amount of failed login tries before considering the account blocked.static intThe amount of failed login tries before considering the ip blocked.static intThe amount of seconds until being able to retry login after N failed attempts.static intThis indicates how much time we wait for a message to arrive.static intMaximum size of elements on a array (256K)static intMaximum size of bytes on a message (256KB)static intThe number of parallel connections that may be used from one ip-address.static intThis indicates when we stop waiting for the socket.static longIt 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. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SOCKET_TIMEOUT
public static final int SOCKET_TIMEOUTThis 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_TIMEOUTIt 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_TIMEOUTThis 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_ELEMENTSMaximum size of bytes on a message (256KB)- See Also:
- Constant Field Values
-
MAX_ARRAY_ELEMENTS
public static final int MAX_ARRAY_ELEMENTSMaximum size of elements on a array (256K)- See Also:
- Constant Field Values
-
FAILED_LOGIN_ATTEMPTS_ACCOUNT
public static final int FAILED_LOGIN_ATTEMPTS_ACCOUNTThe 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_IPThe amount of failed login tries before considering the ip blocked.- See Also:
- Constant Field Values
-
FAILED_LOGIN_BLOCKTIME
public static final int FAILED_LOGIN_BLOCKTIMEThe 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_COUNTINGTIMEThe timeframe to check when counting account creations.- See Also:
- Constant Field Values
-
ACCOUNT_CREATION_LIMIT
public static final int ACCOUNT_CREATION_LIMITThe 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_COUNTINGTIMEThe timeframe to check when counting character creations.- See Also:
- Constant Field Values
-
CHARACTER_CREATION_LIMIT
public static final int CHARACTER_CREATION_LIMITThe 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_LIMITThe number of parallel connections that may be used from one ip-address.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TimeoutConf
public TimeoutConf()
-