当前位置:网站首页>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
边栏推荐
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Embedded AI intelligent technology liquid particle counter
- MySQL blind note common functions
- Logistic regression: the most basic neural network
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
- Leetcode solution - number of islands
- Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
- The browser cannot access Baidu
- 万字详解八大排序 必读(代码+动图演示)
- Programming knowledge -- basis of C language
猜你喜欢
UEFI development learning 3 - create UEFI program
Could NOT find XXX (missing: XXX_LIBRARY XXX_DIR)
High end electronic chips help upgrade traditional oil particle monitoring
Altium Designer 19.1.18 - 清除测量距离产生的信息
A complete set of indicators for the 10000 class clean room of electronic semiconductors
P3D gauge size problem
Cadence simulation encountered "input.scs": can not open input file change path problem
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
随机推荐
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
solver. Learning notes of prototxt file parameters
QT excellent articles
Development tools -- gcc compiler usage
Numpy——1.数组的创建
Altium Designer 19.1.18 - 清除测量距离产生的信息
Application of ultra pure water particle counter in electronic semiconductors
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
通过sql语句统计特定字段出现次数并排序
Improve lighting C program
Day01 markdown log entry tips
[professional literacy] specific direction of analog integrated circuits
. Net service governance flow limiting middleware -fireflysoft RateLimit
Day07 type of mathematical operator automatic conversion relational operator bitwise operator blind date math
Numpy——1.數組的創建
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
Extern keyword function
C language uses arrays to realize the intersection, union, difference and complement of sets
RF ride side door processing of prompt box
Significance and requirements of semiconductor particle control