201621123080 Java Programming 13th Week of study Summary 1. Summary of this week's study
Summarize multiple web-related content in the way you like (mind Mapping, OneNote, or others).
2. Add network functions to your system (shopping cart, library management, landlords, etc.)-group complete
To allow your system to be used by multiple users over the network, you need to add network functionality to your system.
2.1 What network functions do you want to add to your system? What is the design idea?
| Network functions |
|
| User Login, registration |
|
| Borrowing books and returning book |
|
| View Library |
|
The main control program is placed in the thread task, each task corresponds to a connection, and all the inputs and outputs are connected by websocket;
2.2 What information does the system pass through the network? What is the format of the information?
All formatted text information is passed (login information, library data, client server conversations). The format is similar to console input and output, and is packaged into characters with scanner and PrintWriter.
2.3 Does your network module use TCP or UDP technology? What are the common classes in a module?
Adopt TCP technology. Common classes have ServerSocket Socket .
2.4 Network communication part of the source code and run, and to do a simple explanation.
This side also encountered a small problem, that is, the network connector can not connect to the server, prompting such as. I haven't found a solution yet, but it's okay to restart the computer ...
3. Code cloud and PTA3.1 Statistics The amount of this week's work done
The weekly code statistics need to be fused into a single table.
| Week Time |
Total code Amount |
New Code Volume |
total number of files |
number of new files |
| 1 |
0 |
0 |
0 |
0 |
| 2 |
0 |
0 |
0 |
0 |
| 3 |
472 |
472 |
11 |
11 |
| 4 |
472 |
0 |
11 |
0 |
| 5 |
468 |
-4 |
12 |
1 |
| 6 |
1043 |
575 |
30 |
18 |
| 7 |
2417 |
1374 |
51 |
21st |
| 8 |
5129 |
2712 |
83 |
32 |
| 9 |
5284 |
155 |
89 |
6 |
| 10 |
5714 |
430 |
98 |
9 |
| 11 |
5995 |
281 |
105 |
7 |
| 12 |
6365 |
370 |
114 |
9 |
| 13 |
6771 |
50W |
120 |
6 |
| 14 |
6910 |
139 |
121 |
1 |
201621123080 Java Programming 13th Week of study summary