当前位置:网站首页>Process communication mode between different hosts -- socket
Process communication mode between different hosts -- socket
2022-07-05 07:54:00 【Soy sauce;】
1. introduce
2.socket Concept
Socket It has “ Socket ” It means , stay Linux In the environment , A special file type used to represent inter process network communication . It is essentially formed by the kernel with the help of buffer Fake documents .
Since it's a document , So of course , We can use file descriptors to reference sockets . Similar to pipes ,Linux The purpose of the system encapsulating it into a file is to unify the interface , Make the operations of reading and writing sockets and reading and writing files consistent . The difference is that the pipeline is mainly used for local inter process communication , Sockets are mostly used for data transmission between network processes .
One-to-one correspondence , Pairs appear
It's a fake file
Full duplex communication
In network communication , Sockets must appear in pairs . The transmit buffer at one end corresponds to the receive buffer at the opposite end . We use the same file descriptor to retrieve the send buffer and receive buffer . Similar pipe .
A file descriptor operates on two buffers to send and receive data
边栏推荐
- UEFI development learning series
- .NET服务治理之限流中间件-FireflySoft.RateLimit
- Day06 class variables instance variables local variables constant variables naming conventions
- Leetcode solution - number of islands
- QT's excellent articles
- Improve lighting C program
- Opendrive ramp
- Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
- String judgment
- 2021-10-28
猜你喜欢
Train your dataset with yolov4
Ads learning record (lna_atf54143)
Numpy——1. Creation of array
A complete set of indicators for the 10000 class clean room of electronic semiconductors
mysql 盲注常见函数
Programming knowledge -- assembly knowledge
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
C language enhancement -- pointer
C language uses arrays to realize the intersection, union, difference and complement of sets
The printer encountered an abnormal configuration problem 0x8007007e (win10)
随机推荐
Programming knowledge -- assembly knowledge
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
QT's excellent articles
Detailed explanation of C language pointer
Linked list (establishment, deletion, insertion and printing of one-way linked list)
Altium designer learning (I)
Create inf module in AMI code
UEFI development learning 3 - create UEFI program
solver. Learning notes of prototxt file parameters
SQL JOINS
Day06 class variables instance variables local variables constant variables naming conventions
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
Development tools -- gcc compiler usage
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Cadence learning records
研究发现,跨境电商客服系统都有这五点功能!
Batch modify the txt file code to UTF-8 (notepad++)
Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share