Project name: Java Communication Project--QQ
Members: Sheng, Zheng
Project needs: QQ Everyone has used, its meaning is no longer talk about. QQ is chosen to do because it is challenging, involving communications, transmission, swing and other knowledge. (ok I do not pretend to be forced, say the straightforward point, the code is large, if write Gobang the snake kind of absolutely write less than 500 lines)
First, the entire project is divided into two parts: client and server. The function that the client wants to complete is the interface (main interface, Friend list, chat interface) and login, chat function. The server acts as a background and is responsible for communication connections. The logic of the project must be clear, the logical relationship between class and package and package, and the hierarchy must understand
Code:
Because no database is not used in the collection framework to record user information, so in the login myserver directly in the judgment, the account can be filled in, but the password must be 123456, not the popup prompt box, is to jump to the Friends list. The chat feature was not able to be forwarded from the server to the client, but the server was able to catch information entered from the client. Here is a mistake, we test the server to grasp the information is normal, but the interface will be error java.net.SocketException:Connection reset, should be where the socket is not properly closed, but do not know how to solve, This bug was left behind. Didn't care at first, continue to write back, when the server like the client to forward the message when the error.
May be I am too stupid, really can not find a good angle to take a selfie may be photographed a person has taken a computer and then took a picture (although how to look like the show love and not like a knock code)
Convention specification: All involved in interface design, need to add monitoring places, the name must be intuitive and convenient; the client and server must have a package with the same name, such as Com.commen, for storing user,message classes; port number 9999 The naming of all classes requires a uniform negotiation to invoke and a method or member variable in the class, and a good message packet, such as 1 for the information to be able to log in correctly, 2 for information error, and for other message packets, and a comment before each function.
Recording time: Topic 10min
The Division of labor, programming, debugging for a total of four days (including looking at the book video)
Experience: mouth easy to do, feel very good to do things really will encounter a lot of problems, communication, flow here knowledge is not firm, need to look at the book to knock Out, out of the wrong to solve it is not simple, the project involves the collection framework knowledge, here need to learn a system. No matter what to do in the future, be sure to do, the light to see the video is difficult to master, even if the video knocked down, there will be some errors, I have most of the JDK version of the problem. Of course, there are other small problems, had to turn to Niang for help.
Pair blog (Java Communication project QQ)