Source code: marauroa/TimeoutConf.java
1 /* $Id: TimeoutConf.java,v 1.4 2003/12/10 13:51:44 arianne_rpg Exp $ */
2 /***************************************************************************
3 * (C) Copyright 2003 - Marauroa *
4 ***************************************************************************
5 ***************************************************************************
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
13 package marauroa;
14
15 public class TimeoutConf
16 {
17 final public static boolean TIMEOUT_ENABLE=true;
18 /** This indicate when we stop to wait on the socket. The lower the slower. */
19 final public static int SOCKET_TIMEOUT=100;
20 /** This indicate how many time we wait for a message to arrive. The lower the slower. */
21 final public static int GAMESERVER_MESSAGE_GET_TIMEOUT=10000;
22
23 /** This indicate when the client remove the incomplete packet from its queue */
24 final public static int CLIENT_MESSAGE_DROPPED_TIMEOUT=60000;
25 /** Indicate how many packets can be read from network before returing */
26 final public static int CLIENT_NETWORK_NUM_READ=5;
27 /** This indicate that the player is totally dead and must be removed.
28 * Should be related to Turn Duration, around 4-10 times bigger at least. */
29 final public static int GAMESERVER_PLAYER_TIMEOUT=240000;
30 }