当前位置:网站首页>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
边栏推荐
- Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
- Some errors in configuring the environment
- Function and usage of function pointer
- How to excavate and research ideas from the paper
- 通过sql语句统计特定字段出现次数并排序
- 研究發現,跨境電商客服系統都有這五點功能!
- C language enhancement -- pointer
- Calibre garbled
- High end electronic chips help upgrade traditional oil particle monitoring
- Record the opening ceremony of Beijing Winter Olympics with display equipment
猜你喜欢
Record the opening ceremony of Beijing Winter Olympics with display equipment
Openxlsx field reading problem
数字孪生实际应用案例-风机篇
The research found that the cross-border e-commerce customer service system has these five functions!
About the problem that MySQL connector net cannot be cleared in MySQL
Improve lighting C program
Train your dataset with yolov4
Altium designer 19.1.18 - clear information generated by measuring distance
MySql——存储引擎
Ads usage skills
随机推荐
Consul installation
IEEE access personal contribution experience record
Could NOT find XXX (missing: XXX_LIBRARY XXX_DIR)
Day06 class variables instance variables local variables constant variables naming conventions
Pointnet++ classification practice
How to excavate and research ideas from the paper
How to define guid in AMI code
Interview catalogue
Some errors in configuring the environment
Rename directory in C [closed] - renaming a directory in C [closed]
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
Shell script basic syntax
NSIS search folder
About yolov3, conduct map test directly
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
TCP and UDP
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share