当前位置:网站首页>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
边栏推荐
- Development tools -- gcc compiler usage
- Record the visual shock of the Winter Olympics and the introduction of the screen 2
- Detailed explanation of C language pointer
- Pointnet++ classification practice
- LED display equipment records of the opening ceremony of the Beijing Winter Olympics
- 研究发现,跨境电商客服系统都有这五点功能!
- UEFI development learning 2 - running ovmf in QEMU
- Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
- Openxlsx field reading problem
- Day09 how to create packages import package naming conventions Alibaba Development Manual
猜你喜欢

About the problem that MySQL connector net cannot be cleared in MySQL

Logistic regression: the most basic neural network

MySQL - storage engine

Shell script basic syntax

Programming knowledge -- assembly knowledge

MySQL blind note common functions

Record the opening ceremony of Beijing Winter Olympics with display equipment

SQL JOINS

Markdown tips

Package ‘*****‘ has no installation candidate
随机推荐
Opendrive record
Batch modify the txt file code to UTF-8 (notepad++)
Numpy——1. Creation of array
[professional literacy] specific direction of analog integrated circuits
Linked list (establishment, deletion, insertion and printing of one-way linked list)
Global and Chinese markets for flexible endoscopic lithotripsy devices 2022-2028: Research Report on technology, participants, trends, market size and share
Distinction between heap and stack
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
High end electronic chips help upgrade traditional oil particle monitoring
Altium Designer 19.1.18 - 清除测量距离产生的信息
UEFI development learning series
[professional literacy] core conferences and periodicals in the field of integrated circuits
The research found that the cross-border e-commerce customer service system has these five functions!
Gradle复合构建
Software designer: 03 database system
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Day09 how to create packages import package naming conventions Alibaba Development Manual
万字详解八大排序 必读(代码+动图演示)
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
通过sql语句统计特定字段出现次数并排序