Content Summary:1. Network Seven layer model2. What is the HTTP protocol3. What is the socket interface1. Network Seven layer modelFirst layer: Physical layerTo provide a reliable environment for the transmission of information between devices, what
Use Socket.io to create a Socket.io server. However, the server relies on an HTTP server that has already been created.
After the HTTP server is running, use the Listen method to attach a Socket.io server to the HTTP server.
Copy Code code
Network programming based on TCP protocol:TCP/IP communication protocol is a reliable network protocol, he set up a socket at both ends of the communication, thereby forming a network virtual link between the two ends of the communication. Once the
Network Programming concept full contact (i)
Starting from the most basic concept layer, we can fully understand the essence of the network.
1. Computer network
By connecting the various computer systems with different geographical location and
HTTP protocol: Simple Object Access Protocol, corresponding to the application layer, HTTP protocol is based on TCP connection
TCP Protocol: Corresponds to the transport layer
IP Protocol: Corresponds to the network layer
TCP/IP is a Transport
1, TCP connection
To understand the socket connection, first understand the TCP connection. The mobile phone can use the networking function because the mobile phone at the bottom of the implementation of the TCP/IP protocol, the mobile phone
I believe that many novice mobile phone networking development friends want to know what is the difference between HTTP and socket connection, hope that through their own simple understanding can help beginners.
1, TCP connection
To understand the
I believe that many novice mobile phone networking development friends want to know what is the difference between HTTP and socket connection, hope that through their own simple understanding can help beginners.
1, TCP connection
The mobile phone
Socket asynchronous communication, the thread pool is the system to maintain the threads
Note: When calling asynchronously, you cannot use the method called synchronously, and the thread blocks
Server:
Using System;
Using System.Collections.Generic;
The former: Thread pool Network Service is an improved model for the lack of multi-threaded Network service model, the basic idea is to create a batch of resources, when the user arrives, directly assign the resources that have been created; The
Socket,tcp/udp,http,ftp (i) tcp/udp,socket,http,ftp a brief analysis of TCP/IP is a protocol group, can be divided into three levels: Network layer, Transport layer and Application layer: Network layer: IP protocol, ICMP protocol, ARP protocol, RARP
1. Master-slave replication1.1 PrincipleThe Main Library opens the Binlog function and authorizes the main library to connect from the library, obtains the relevant synchronization information from the library through change master, and then
TCP/IP status change diagram and TCP three-way handshake and four-way handshake (1)
TCP/IP status change diagram:
Detailed descriptions of each status:
CLOSED: indicates the initial state. It is the same for both the server and the C
This article describes the CSocket programming model. The CSocket class provides more socket support than the CAsyncSocket class abstraction level.CSocketA version of the MFC serialization protocol is used to transmit data to or from a socket object
The network is divided from bottom to topThe physical layer, the data link layer, the network layer, the Transport layer, the session layer, the presentation layer, and the application layer.With a preliminary understanding, I know that the IP
By referring to other cattle articles and code, and then summing up according to their own understanding, the explanation has been added to the note, FYIMain Reference article:
The network is divided from bottom to topThe physical layer, the data link layer, the network layer, the Transport layer, the session layer, the presentation layer, and the application layer.With a preliminary understanding, I know that the IP
Article Source: http://jingyan.baidu.com/article/08b6a591e07ecc14a80922f1.htmlThe network is divided from bottom to topThe physical layer, the data link layer, the network layer, the Transport layer, the session layer, the presentation layer, and
(Xee: This IP is definitely not an IP address in connection with TCP!) , also an agreement! What kind of protocol, see the following programming TCP/IP architecture ) Now attach several pictures to see: The network is divided from bottom to top:
First, the preparation of ideasMobile phone terminal for the client, the PC for the server, mobile phone access to PC communications, the need to establish a virtual communication link, the client through the socket to send the request to the server,
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.