Today, I will continue to talk about the detailed design of the Java QQ project. Today I will talk about the QQ login module, including the process in which the client login module sends a request and the server receives and processes the request and returns the result, let's talk about it in a flowchart.
Application Module (client): applies for the account information entered in the QQ application information interface. If an error is found, all input data is cleared so that the user can enter the data again. If no error is found, the account transfer application is successful. The pseudo code is as follows:
If (the nickname is blank) {enter the nickname} else if (incorrect password format (less than 6 or greater than 20) {the password must be 6-20 characters long! Clear Password box, re-enter} else if (two passwords do not match) {two passwords do not match the Password box, re-enter} else {get registration information click New User Registration to transfer registration information to the server}
Client flowchart:
Application Module (client ):
Write the application information sent by the user into the temporary variable object and store it in the database.
Create the following information in the database:
Insert the requested number to each table in the main database
Create an account file in the users database, including a friend list, a friend verification table, and a history record table.
Server process:
This series of blog only provides design ideas, and a small number of pseudo code, detailed code: http://blog.csdn.net/wangchangshuai0010/article/details/7343103