Java QQ project detailed design series-application module

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.