Packagecom.smartfoxserver.v2.util
Classpublic class ConfigData
InheritanceConfigData Inheritance Object

The ConfigData class stores the client configuration data loaded from an external XML file. The external configuration file is loaded by the SmartFox class when its loadConfig() method is called.

See also

SmartFox.loadConfig()


Public Properties
 PropertyDefined By
  blueBoxPollingRate : int = 750
Specifies the BlueBox polling speed.
ConfigData
  debug : Boolean = false
Indicates whether the client-server messages debug should be enabled or not.
ConfigData
  host : String = 127.0.0.1
Specifies the IP address or host name of the SmartFoxServer 2X instance to connect to (TCP connection).
ConfigData
  httpPort : int = 8080
Specifies the port for generic HTTP communication.
ConfigData
  port : int = 9933
Specifies the TCP port of the SmartFoxServer 2X instance to connect to (TCP connection).
ConfigData
  udpHost : String = 127.0.0.1
Specifies the IP address of the SmartFoxServer 2X instance to connect to (UDP connection).
ConfigData
  udpPort : int = 9933
Specifies the UDP port of the SmartFoxServer 2X instance to connect to (UDP connection).
ConfigData
  useBlueBox : Boolean = true
Indicates whether the SmartFoxServer's BlueBox should be enabled or not.
ConfigData
  zone : String
Specifies the Zone of the SmartFoxServer 2X instance to join.
ConfigData
Property Detail
blueBoxPollingRateproperty
public var blueBoxPollingRate:int = 750

Specifies the BlueBox polling speed.

The default value is 750.

debugproperty 
public var debug:Boolean = false

Indicates whether the client-server messages debug should be enabled or not.

The default value is false.

hostproperty 
public var host:String = 127.0.0.1

Specifies the IP address or host name of the SmartFoxServer 2X instance to connect to (TCP connection).

The default value is 127.0.0.1.

httpPortproperty 
public var httpPort:int = 8080

Specifies the port for generic HTTP communication.

The default value is 8080.

portproperty 
public var port:int = 9933

Specifies the TCP port of the SmartFoxServer 2X instance to connect to (TCP connection).

The default value is 9933.

udpHostproperty 
public var udpHost:String = 127.0.0.1

Specifies the IP address of the SmartFoxServer 2X instance to connect to (UDP connection).

The default value is 127.0.0.1.

udpPortproperty 
public var udpPort:int = 9933

Specifies the UDP port of the SmartFoxServer 2X instance to connect to (UDP connection).

The default value is 9933.

useBlueBoxproperty 
public var useBlueBox:Boolean = true

Indicates whether the SmartFoxServer's BlueBox should be enabled or not.

The default value is true.

zoneproperty 
public var zone:String

Specifies the Zone of the SmartFoxServer 2X instance to join.

The default value is null.