MACROMEDIA FLASH MEDIA SERVER 2-INSTALLING FLASH MEDIA SERVER 2 Technical Information Seite 55

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 66
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 54
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
Seitenansicht 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 65 66

Kommentare zu diesen Handbüchern

Keine Kommentare