"Network program development"---> Based on LAN or Internet, exploiting network development technology to develop software (System) that can run on the network
"Network Program Structure"---> C/s B/s
"C/S" Client/server is the client and service-side structure, clients submit the user's needs to the server, and then the results returned by the server are provided to the user in a certain form,
The server's task is to accept the client's request for service, handle it accordingly, and return the result to the client. Under the C/s structure, server programs are typically
A fixed address (Ip&port) listens to the client's request, and the server process is usually in a "dormant" state, waiting for the client to wake up the request;
"B/S" Browser/server is the browser and server structure, the client runs the browser, the browser in "Hypertext" form to the Web server to request access to the database, the Web
After the server receives the client request, it translates the request into SQL syntax, accesses the database, and then returns the result to the Web server, which the Web server then
The result is converted to an HTML document, returned to the client browser, in the form of a Web page, in the B/s structure, the Web browser is the main client software, the system
The core part of the feature implementation is centralized to the server
Comparative analysis of "b/S" and "C/S":
The C/S structure takes full advantage of the hardware advantages of client and server, distributes the task reasonably to the client and server side, reduces the overhead of the system, many tasks in the client
After processing to the server, so the server running load is relatively low, the client response is faster, but this structure requires the client to install the specified client
Software, software writing has become the "client" and "server-side" two large engineering code maintenance;
b/S structure The biggest advantage is that the client does not need to install additional specialized client software, as long as the client installed the browser can be, which also determines the B/s structure
System expansion and maintenance, upgrades are easier.
[00014]-[2015-09-04]-[00]-[winsocket Programming 0 Basic Primer]