当前位置:网站首页>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
边栏推荐
- L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
- Day07 type of mathematical operator automatic conversion relational operator bitwise operator blind date math
- Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
- 研究發現,跨境電商客服系統都有這五點功能!
- High end electronic chips help upgrade traditional oil particle monitoring
- Detailed explanation of C language pointer
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- ·Practical website·
- Scm-05 basis of independent keyboard
- Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Opendrive arc drawing script

LED display equipment records of the opening ceremony of the Beijing Winter Olympics

Programming knowledge -- basis of C language

Altium Designer 19.1.18 - 导入板框

C language enhancement -- pointer

Record the visual shock of the Winter Olympics and the introduction of the screen 2

Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)

MySQL - storage engine

Application of ultra pure water particle counter in electronic semiconductors

A complete set of indicators for the 10000 class clean room of electronic semiconductors
随机推荐
Programming knowledge -- assembly knowledge
Explain STM32 startup file in detail
Record the opening ceremony of Beijing Winter Olympics with display equipment
Altium designer 19.1.18 - hide the fly line of a network
The browser cannot access Baidu
MySql——存储引擎
Query the table name used by kettle in Oracle
Cygwin installation
From then on, I understand convolutional neural network (CNN)
研究發現,跨境電商客服系統都有這五點功能!
Cadence learning records
研究发现,跨境电商客服系统都有这五点功能!
II Simple NSIS installation package
Extern keyword function
Day06 class variables instance variables local variables constant variables naming conventions
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Esmini longspeedaction modification
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一