[00014]-[2015-09-04]-[00]-[winsocket Programming 0 Basic Primer]

Source: Internet
Author: User

"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]

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.