Package marauroa.common
Class TimeoutConf
java.lang.Object
marauroa.common.TimeoutConf
This class stores some constants about server timeout values.
- Author:
- miguel
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
The timeframe to check when counting account creations.static int
The number of accounts that may be created within the timeframe from one ip-addressstatic int
The timeframe to check when counting character creations.static int
The number of characters that may be created within the timeframe from one ip-addressstatic int
The amount of failed login tries before considering the account blocked.static int
The amount of failed login tries before considering the ip blocked.static int
The amount of seconds until being able to retry login after N failed attempts.static int
This indicates how much time we wait for a message to arrive.static int
Maximum size of elements on a array (256K)static int
Maximum size of bytes on a message (256KB)static int
The number of parallel connections that may be used from one ip-address.static int
This indicates when we stop waiting for the socket.static long
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. -
Constructor Summary
-
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()
-