com.asdf.utils
Class ClientServerConstants

java.lang.Object
  extended by com.asdf.utils.ClientServerConstants

public class ClientServerConstants
extends java.lang.Object

Contains common constants used in client server implementation.


Field Summary
static int CONNECT_TIMEOUT
          Connecting timeout for client.
static int PORT
          Protocol port
static int SELECT_TIMEOUT
          Select() call timeout.
static int TOO_BIG_MESSAGE
          If message is longer than this, it is considered garbage.
static int WASTING_MEM_RATIO
          Determines the ratio limit on which to release buffer and allocate new smaller one to prevent wasting memory.
 
Constructor Summary
ClientServerConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOO_BIG_MESSAGE

public static final int TOO_BIG_MESSAGE
If message is longer than this, it is considered garbage.

See Also:
Constant Field Values

SELECT_TIMEOUT

public static final int SELECT_TIMEOUT
Select() call timeout. Enables non-blocking operation.

See Also:
Constant Field Values

WASTING_MEM_RATIO

public static final int WASTING_MEM_RATIO
Determines the ratio limit on which to release buffer and allocate new smaller one to prevent wasting memory.

See Also:
Constant Field Values

PORT

public static final int PORT
Protocol port

See Also:
Constant Field Values

CONNECT_TIMEOUT

public static final int CONNECT_TIMEOUT
Connecting timeout for client. 3 seconds.

See Also:
Constant Field Values
Constructor Detail

ClientServerConstants

public ClientServerConstants()