Posts Tagged ‘Server side Config’

Smartfox Server–Chapter 07-Server side Config-part-4

October 3rd, 2010 by aabhaanjan

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

Server side Config-part-4

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

Lets continue with following tags :

server side config -part-4

BanCleaning : here we can set it auto. In a specific interval which BanDuration it will clean the ban.

BanDuration: here we can set the duration of ban.

BannedLoginMessage : Here we can set the cutom message for the banned user.

OutQueueThreads: This tag is basically used as the performance settings. It represents the number of Java worker threads used for the SmartFoxServer EventWriter. The EventWriter is the server stage responsible for broadcasting messages back to the connected clients and it is usually one of the most busy stages of the server. By default  it is assigned 1 thread . We generally use (number of cpus / 2) rule to decide how many threads to assign .

ExtHandlerThreads: Here we can set the size of the thread pool. By default it is 1. Only in special case like when one extension blocks for a certain amount of time waiting for a resource, an external response or a complex database request etc we need to increase it.

MaxWriterQueue: The maximum number of messages that can be added to the outgoing message queue. This parameter is already set by default to a high value.

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

Smartfox Server–Chapter 06-Server side Config-part-3

October 3rd, 2010 by aabhaanjan

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

Server side Config-part-3 Bad words filtering

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


Lets continue with Bad words filtering  🙂

server side config -part-3

SmartFoxServer provides a built-in customizable bad words filter which allow automatic moderation of chat applications and games. We can make a list of bad words that we want to be filtered and server will automatically handle that by replacing them with asterisks or completely remove the phrase.

Also you can turn automatic administrator messages and specify the amount of warnings before the user is kicked and the amounts of kicks before the user is completely banned from the server.

Active : It is a Boolean value which specify if we want to use this feature.

FilterMode : There are two mode :

a). FILTER : It will replace the bad words with asterisks

b). REMOVE : it will remove every phrase containing bad words

StripCharacters : By default the following characters are , . ; : _ ! $ % & / # * – +.By using this feature we can specify which characters should be stripped from the original message

Warnings: It is a Boolean value. By turning them on the server will send a custom warning message to the user each time a bad word is detected or removed.

FilterRoomNames : It is a Boolean value. By turning them on it will filter bad words in room names.

FilterUserNames: It is a Boolean value. By turning them on it will filter bad words in user nicknames.

WarningsBeforeKick: Here we can specify how many warnings are sent before the user is automatically kicked.

WarningMessage : Here we can specify the custom warning message.

KickMessage : Here we can specify the custom kick message.

BanMessage: Here we can specify the custom ban message.

BanAfter: Here we can specify how many kicks are tolerated before the user is automatically banned from the server.

BadWordsList : Here we can list the custom list of bad words to be filtered.

Previous Chapter

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

Smartfox Server–Chapter 05-Server side Config-part-2

October 3rd, 2010 by aabhaanjan

———————————————————————————————————————

Server side Config-part-2

————————————————————————————————————————

Lets continue with other nodes 🙂

server side config -part-2

If you want to kick and banish any user you have an automatic option too . SmartFoxServer comes with filter which is called anti-flood filter which allows to automatically kick and banish users that are trying to flood your applications with messages.  In above attached image the nodes are divided into sub-nodes lets discuss each node :

AntiFlood active : This is a Boolean value which is use to turn on/off the filter.

MinMsgTime  tolerance : MinMsgTime is the minimum time allowed between two messages. The tolerance attribute stands for the amount of messages. Before sending warning message server will check the tolerance limit.

MaxRepeatedMessages : This is the maximum allowed number of identical messages. After crossing the limit server will automatically send  a warning message to user.

WarningsBeforeKick : This is a number value. Where we specify how many warning messages a user can get before being kicked.

WarningMessage : Here we specify the custom message what we want to show as warning message.

KickMessage : Here we specify the custom message what we want to show as kick message.

BanMessage : Here we specify the custom message what we want to show as ban message.

BanAfter This is a number value. Where we specify how many warning messages a user can get before being baned.

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

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: , , , , , , , , , , , , , , , , , ,