"C++ High Concurrency Server Notes - Chapter Four"

Computer network and other related knowledge can be consolidated in Kobayashi coding (click to go)

"C++ High Concurrency Server Notes - Chapter Four"

4.1, network structure mode

1. C/S structure

① Introduction to C/S structure

② Advantages of C/S structure

③ Disadvantages of C/S structure

2. B/S structure

① Introduction to B/S structure

② Advantages of B/S structure

③ Disadvantages of B/S structure

4.2 and 4.3, MAC address, IP address, port

1. Introduction to MAC address

2.IP address

①Introduction to IP address

②IP address addressing method

③Class A IP address

④ Class B IP address

⑤Class C IP address

⑥Class D IP address

⑧ Subnet mask

3. Port

①Introduction

②Port type

4.4. Network model

1. OSI seven-layer reference model

2.TCP/IP four-layer model

①Introduction

②Introduction to the four floors

4.5. Agreement

1 Introduction

2. Common protocols

3. UDP protocol

4. TCP protocol

5. IP protocol

6. Ethernet frame protocol

7. ARP protocol

4.6 and 4.7, the process of network communication

1. Encapsulation

2. Divide

3. The data passes through four layers of TCP/IP

4. The process of network communication

5. The process of obtaining the MAC physical address by the ARP protocol

4.8、socket

1. socket introduction

4.9, byte order

1 Introduction

2. Byte sequence example

3. Determine the code of the computer storage method

4.10. Byte sequence conversion function

1. Endian conversion function

2. What are the byte order conversion functions?

3. Use of byte order conversion function

4.11, socket address

1. General socket address

2. Dedicated socket address

4.12, ip address conversion function

1. IP address conversion (string ip-integer, conversion of host and network byte order)

2. Code example of conversion function

4.13, TCP communication process

1. The difference between TCP and UDP (transport layer protocol)

2. TCP communication process

① Server side (the role of passively accepting connections)

②Client (initiate connection actively)

4.14, socket function

1. What are the socket functions

2. Introduction to socket functions

①socket

②bind

③listen

④accept

⑤connect

4.15 and 4.16, TCP communication implementation (local machine)

1.TCP communication

①TCP communication (server) code

②TCP communication (client) code

4.17, TCP three-way handshake

1. TCP three-way handshake

2. The specific process of TCP communication

① Three-way handshake

② Communication between server and client

Guess you like

Origin blog.csdn.net/z2812470857/article/details/130144320