com.limegroup.gnutella.settings
Class ConnectionSettings

java.lang.Object
  extended bycom.limegroup.gnutella.settings.AbstractSettings
      extended bycom.limegroup.gnutella.settings.LimeProps
          extended bycom.limegroup.gnutella.settings.ConnectionSettings

public final class ConnectionSettings
extends LimeProps

Settings for Gnutella TCP connections.


Field Summary
static BooleanSetting ACCEPT_DEFLATE
          Setting for whether or not we'll accept incoming connections that are compressed via deflate.
static BooleanSetting ALLOW_MULTICAST_LOOPBACK
          Setting for whether or not to allow multicast message loopback.
static StringSetting CONNECT_OK_STRING
           
static BooleanSetting CONNECT_ON_STARTUP
          Settings for whether or not to automatically connect to the network on startup.
static StringSetting CONNECT_STRING
           
static java.lang.String CONNECT_STRING_FIRST_WORD
           
static IntSetting CONNECTION_SPEED
          The connection speed in kbyte/s
static BooleanSetting ENCODE_DEFLATE
          Setting for whether or not we'll encode outgoing connections via deflate.
static BooleanSetting EVER_ACCEPTED_INCOMING
          Settings for whether or not an incoming connection has ever been accepted.
static BooleanSetting FORCE_IP_ADDRESS
          Sets whether or not the users ip address should be forced to the value they have entered.
static StringSetting FORCED_IP_ADDRESS_STRING
          Forces IP address to the given address.
static IntSetting FORCED_PORT
          The port to use when forcing the ip address.
static BooleanSetting IGNORE_KEEP_ALIVE
          Setting for whether or not the keep alive setting should be ignored -- used for testing.
static BooleanSetting LOCAL_IS_PRIVATE
          Settings for whether or not to local addresses should be considered private, and therefore ignored when connecting
static StringSetting MULTICAST_ADDRESS
          Setting for the multicast address.
static IntSetting MULTICAST_PORT
          Setting for the multicast port.
static IntSetting NUM_CONNECTIONS
          Settings for the number of connections to maintain.
static IntSetting PORT
          The port to connect on
static BooleanSetting PREFERENCING_ACTIVE
          Setting for whether or not to use connection preferencing -- used primarily for testing.
static BooleanSetting REMOVE_ENABLED
          Setting for whether or not the removal of connections should be allowed -- used for testing.
static BooleanSetting SHOW_KEEP_ALIVE
          Setting for whether or not to show the keep alive in the UI.
static ByteSetting SOFT_MAX
          Setting for the "soft max" ttl.
static ByteSetting TTL
          The time to live.
static BooleanSetting USE_GWEBCACHE
          Setting for whether or not to connect using GWebCache.
static BooleanSetting USE_NIO
          Setting for whether or not to use NIO for network IO.
static BooleanSetting WATCHDOG_ACTIVE
          Setting for whether or not to activate the connection watchdog thread.
 
Fields inherited from class com.limegroup.gnutella.settings.LimeProps
FACTORY
 
Method Summary
static int getMaxConnections()
          Helper method left from Settings Manager Returns the maximum number of connections for the given connection speed.
 
Methods inherited from class com.limegroup.gnutella.settings.LimeProps
instance
 
Methods inherited from class com.limegroup.gnutella.settings.AbstractSettings
getFactory, getProperties, getPropertiesFile, getShouldSave, reload, revertToDefault, save, setShouldSave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVER_ACCEPTED_INCOMING

public static final BooleanSetting EVER_ACCEPTED_INCOMING
Settings for whether or not an incoming connection has ever been accepted.


CONNECT_ON_STARTUP

public static final BooleanSetting CONNECT_ON_STARTUP
Settings for whether or not to automatically connect to the network on startup.


NUM_CONNECTIONS

public static final IntSetting NUM_CONNECTIONS
Settings for the number of connections to maintain.


SOFT_MAX

public static final ByteSetting SOFT_MAX
Setting for the "soft max" ttl. This is the limit for hops+ttl on incoming messages. The soft max is invoked if the following is true:

ttl + hops > SOFT_MAX

If this is the case, the TTL is set to SOFT_MAX - hops.


LOCAL_IS_PRIVATE

public static final BooleanSetting LOCAL_IS_PRIVATE
Settings for whether or not to local addresses should be considered private, and therefore ignored when connecting


USE_GWEBCACHE

public static final BooleanSetting USE_GWEBCACHE
Setting for whether or not to connect using GWebCache.


WATCHDOG_ACTIVE

public static final BooleanSetting WATCHDOG_ACTIVE
Setting for whether or not to activate the connection watchdog thread. Particularly useful in testing.


MULTICAST_ADDRESS

public static final StringSetting MULTICAST_ADDRESS
Setting for the multicast address.


MULTICAST_PORT

public static final IntSetting MULTICAST_PORT
Setting for the multicast port.


ALLOW_MULTICAST_LOOPBACK

public static final BooleanSetting ALLOW_MULTICAST_LOOPBACK
Setting for whether or not to allow multicast message loopback.


PREFERENCING_ACTIVE

public static final BooleanSetting PREFERENCING_ACTIVE
Setting for whether or not to use connection preferencing -- used primarily for testing.


REMOVE_ENABLED

public static final BooleanSetting REMOVE_ENABLED
Setting for whether or not the removal of connections should be allowed -- used for testing.


IGNORE_KEEP_ALIVE

public static final BooleanSetting IGNORE_KEEP_ALIVE
Setting for whether or not the keep alive setting should be ignored -- used for testing.


SHOW_KEEP_ALIVE

public static final BooleanSetting SHOW_KEEP_ALIVE
Setting for whether or not to show the keep alive in the UI.


ACCEPT_DEFLATE

public static final BooleanSetting ACCEPT_DEFLATE
Setting for whether or not we'll accept incoming connections that are compressed via deflate.


ENCODE_DEFLATE

public static final BooleanSetting ENCODE_DEFLATE
Setting for whether or not we'll encode outgoing connections via deflate.


TTL

public static final ByteSetting TTL
The time to live.


CONNECTION_SPEED

public static final IntSetting CONNECTION_SPEED
The connection speed in kbyte/s


PORT

public static final IntSetting PORT
The port to connect on


FORCE_IP_ADDRESS

public static final BooleanSetting FORCE_IP_ADDRESS
Sets whether or not the users ip address should be forced to the value they have entered.


FORCED_IP_ADDRESS_STRING

public static final StringSetting FORCED_IP_ADDRESS_STRING
Forces IP address to the given address.


FORCED_PORT

public static final IntSetting FORCED_PORT
The port to use when forcing the ip address.


CONNECT_STRING_FIRST_WORD

public static final java.lang.String CONNECT_STRING_FIRST_WORD
See Also:
Constant Field Values

CONNECT_STRING

public static final StringSetting CONNECT_STRING

CONNECT_OK_STRING

public static final StringSetting CONNECT_OK_STRING

USE_NIO

public static final BooleanSetting USE_NIO
Setting for whether or not to use NIO for network IO. This is useful, for example, for testing the old blocking IO code without switching JVMs.

Method Detail

getMaxConnections

public static final int getMaxConnections()
Helper method left from Settings Manager Returns the maximum number of connections for the given connection speed.