Archive for the ‘Server Side Config’ Category

Smartfox Server – Chapter 04-Server side Config-part-1

October 3rd, 2010 by aabhaanjan

———————————————————————————————————-

Server side Config -Part-1

———————————————————————————————————-

Lets discuss now the Server side Config:

Here we can see many nodes in server side config XML . Let me explain each node and its working .

server side config -part-1

ServerIP :  It specify the  IP address of server.

ServerPort : It specify the  Port of server.

AutoSendPolicyFile :  It is a Boolean value .If set to TRUE it allows SmartFoxServer to automatically generate a cross-domain policy file to enable Flash player 7 (7.0.19.0 or later) to connect outside the current domain.  This is used for  those   SWF files  which are  located in different domains.  We often get cross domain error while we try to connect with swf files which are in different domain. To avoid this we need to set it true.

MaxUserIdleTime : The time is expressed in seconds and it represents the maximum time allowed for an idle client. After that time, idle users are automatically disconnected by the server

MaxSocketIdleTime : it comes with the version 1.6.3 .It is an interval of seconds which represents the maximum time a connection can stay idle before the server forces the disconnection. The most important point with this is it is  valid only for client connections that still have to log in the server and create a User session. Once the user is logged in this parameter is ignored and the auto-disconnection will be according to the MaxUserIdleTime parameter.

MaxRoomVars : The maximum number of room variables that can be created in a single room.

MaxUserVars : The maximum number of user variables that can be created by a single user.

UserVarsOptimization : it comes with  the version 1.6.3. It allows to receive only real changes in user variables, avoiding variables that didn’t change to be retransmitted. It helps to improves bandwidth usage when many variables are being used.

Previous Chapter

Next Chapter

Tags: , , , , , , , , , , , , , , , , , ,

Smartfox server – chapter 03 Client side Config

October 2nd, 2010 by aabhaanjan

Some other nodes of this  config.xml :

5

debug : It is a Boolean value . It holds the client-side debugging information When we set it true , the developer is able to see all server communication with the client in Flash IDE. It helps in debugging during the application development process.  Using this we can see the messages in the output window. e.g

6

blueBoxIpAddress : It is a string value which contains the BlueBox IP address.

blueBoxPort :  It is a number value contains the Blue box connection port.

smartConnect : It is a Boolean value . By default it is true. Basically it  indicates if the BlueBox http connection should be used in case a socket connection is not available.

httpPort: It is a number value by default it is 8080. This property can be changed according to the webserver’s listening port.

httpPollSpeed :

Here we can specify the  minimum required interval between two polling requests when connecting to SmartFoxServer  via  BlueBox module. The default value is 750 milliseconds. The value should be in betweens  0 and 10000 milliseconds (10 seconds). It adds minimum lag to the client responsiveness and it keeps the server CPU usage low

Optimal Values  for httpPollSpeed:

a). For chats, turn-based games  : 750-1000

b).  For super fast real-time games : 50-100

c)  Using values below 50 ms is not recommended.

rawProtocolSeparator:  It is a string value . The default value is “%” . it is used to get or set the character used as separator for the String (raw) protocol

Previous Chapter

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,