C/S And B/S
* C/S ( Client/Server ) Characteristics of client and server
1、 Both client and server software need to be written by programmers .
2、 The maintenance of the client is troublesome .( defects )
3、 The existence of the client can separate some operations from the client to run , Reduce the pressure on the server side .( advantage )
* B/S ( Browse/Server ) Features of browser and server
1、 The client does not need to be written by programmers , Directly use the browser software in the system as the client . Programmers only need to write server-side OK 了 .
2、 It's also easy to maintain , Because as long as you maintain the server .（ advantage ）
3、 All operations are on the server side , Relatively high pressure .（ defects ）
Programming practice 1
1、 Customize a server , Receive messages from the browser . Show what information the browser sent , And send simple web information to the browser .
Only a single thread is implemented ~~~ Multithreading I wrote ~ Just for unknown reasons ~ There will be Socket Abnormal shutdown ~! So it didn't work ~
Single thread ： success ~
Multithreading ： Examples of failure ：
My teacher explained that ：
Programming practice 2
2、 Simulate a browser client to send a request to the server , Receive and display the response message .
The response message is ：
Programming practice 3：
3、 Web spider , Collect email address information in web pages .