FlashPioneer Video Chat -- Administrator Manual Go to Chat Homepage
Welcome
Introduction of Flash Chat
Installation
 
System Requirements
 
Install Flash Server on Windows
Install Flash Media Server
Install Red5 Server
 
Install Flash Server on Linux
Install Flash Media Server
Install Red5 Server
 
Install Video Chat Server
Installation of FMS Edition
Installation of Red5 Edition
 
Install Video Chat Client
Installation of Client
Configuration via setting.xml
Make your Client Setup program
Custom Skin
 
Upgrade
 
Database Integration
Install Chat's database (PHP)
PHP Interface description
Install Chat's database (.NET)
.NET Interface description
 
Administrator's Guide
 
Administrator Panel
Monitor
Setting
Room
User
News
Account
 
FAQ and Troubleshooting
Installation Tour (Linux) RED5 Edition
Installation Tour (Linux) FMS Edition
 

   Database Integration -- .NET Interface Description


There is ASP.net reserved interface. Through this, you can save the chat users' information and chat history into your database on the website. And you also can check the user's identity through the interface.
Flash Remoting technology which is based on open source library Fluorine is used for ASP.net interface. The following is the usage description:

1) Server Environment

ASP.net + sql server
Remoting gateway interface program:Fluorine 2.0.7.824 for Windows

2) Server-side program

Remoting program file exists as Class file, and it is placed in "App_code" folder of Fluorine directory.

When Flash client invoke the method of the program object on the server, the class path must be appointed completely.

The path is related with the namespace of the class. For example, the namespace of class HelloWorld is defined as "test", its class path changes to test HelloWorld

3) Server program format

The class files must include by the following 3 methods, the name of method and parameter style must be the same as the following description, or the program can't work properly.

/*
* used for login and identifying
*
* @ param username: User's name login
* @ param pass: password, if login as a guest, don't fill in the blank
* @ param isRegister: whether the user is new, if he/she is, it is true, or it is a
* blank or false
*/

public string doLogin(string username, string pass, bool isRegistrt){
    /*
        Please put your code here to database connection processing
    */

    return Null/"guest"/"member"/"admin"
}

doLogin Function must have return value for Red5/FMS to receive, there are four kinds of return value
  • Null: Null, login failed
  • "guest": String, login succeed and login as a guest
  • "member": String, login succeed and login as a register user
  • "admin": String, login succeed and login as an administrator who has the highest purview.
Explanation: doLogin function is the most important, if it is wrong then nobody can login. So please check it very carefully before you modify.


/*
* change the password, only for the register users
*
* @ param username: User's login name
* @ param oldPass: old pass word
* @ param newPass: new pass word
*/

public bool modifyPassword(string username, string oldPass, string newPass){
    /*
        Please put your code for checking your old password and setting your new         password here
    */

    return true/false;
}

"modifyPassword" function must have return value and it is true of false which is for showing whether the action is completed.


/*
* save the chat history
*
* @ param target: Receiving massage one's name, if the one is in the
* chatting room then it is the room's name. If it is a private chat, it is the user's
* name.
* @ param ip: The user's IP address
* @ param username: Sending message user's name
* @ param message: Massage content
*/

public void saveChatLog(string target,string ip,string username,string message){
    /*
        Please put the code for saving the chat record into the database.
    */

}

The function doesn't need the return value.

Explanation: only the administrator enables the function of saving chatting history in the control panel at the background, the function works.

 TOP