当前位置:网站首页>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
边栏推荐
- A series of problems in offline installation of automated test environment (ride)
- Software designer: 03 database system
- Train your dataset with yolov4
- 如何进行导电滑环选型
- Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
- [untitled] record the visual shock of the Winter Olympics and the introduction of the display screen
- Altium designer 19.1.18 - change the transparency of copper laying
- Ads learning record (lna_atf54143)
- Embedded composition and route
- Improve lighting C program
猜你喜欢

Leetcode solution - number of islands

Application of ultra pure water particle counter in electronic semiconductors

如何进行导电滑环选型

Improve lighting C program

Create inf module in AMI code

如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?

Consul installation

II Simple NSIS installation package

MySQL - storage engine

A simple method to prove 1/t Fourier transform
随机推荐
STM32 learning method
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Development tools -- gcc compiler usage
数字孪生实际应用案例-风机篇
Good websites need to be read carefully
Leetcode solution - number of islands
Cadence learning records
How to excavate and research ideas from the paper
Programming knowledge -- assembly knowledge
MySql——存储引擎
Numpy——1.數組的創建
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
Random function usage notes
II Simple NSIS installation package
Baiwen 7-day smart home learning experience of Internet of things
About yolov3, conduct map test directly
Shell script basic syntax
Summary of STM32 serial port sending and receiving data methods