当前位置:网站首页>UNIX socket advanced learning diary - advanced i/o functions
UNIX socket advanced learning diary - advanced i/o functions
2022-07-05 12:27:00 【yang881221】
1. Socket timeout
a. Use alarm-SIGALARM The signal
b.select Wait in the middle I/O
c. Use the socket option SO_RCVTIMEO,SO_SNDTIMEO.
stay connect and recvfrom Use in alarm
select Set timeout
Use the socket option to modify recvfrom
readv And writev function
Spread reading , Centralized writing
sendmsg,recvmsg
Secondary data

Check the amount of queued data :
Non blocking I/O
MSG_PEEK Peeping data
ioctl FIONREAD
Completely buffered : Buffer full , Process display call fflush, Or process call exit Terminate itself , Usually, it is 8k
The line buffer : Line break encountered , Process call fflush, Or process call exit Terminate itself
No buffer : Every time you call I/O Occurs from time to time I/O
/dev/poll
kqueue
Transaction purpose TCP
边栏推荐
- byte2String、string2Byte
- [superhard core] is the core technology of redis
- Matlab boundarymask function (find the boundary of the divided area)
- 【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
- Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
- A new WiFi option for smart home -- the application of simplewifi in wireless smart home
- Take you two minutes to quickly master the route and navigation of flutter
- 手机 CPU 架构类型了解
- Redis's memory elimination mechanism, read this article is enough.
- Summary of C language learning problems (VS)
猜你喜欢

Matlab boundarymask function (find the boundary of the divided area)

MySQL splits strings for conditional queries

Learn memory management of JVM 01 - first memory

Hexadecimal conversion summary

Redis highly available sentinel mechanism
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases

Migrate data from Mysql to neo4j database

mysql拆分字符串做条件查询

NPM install reports an error

Pytoch loads the initialization V3 pre training model and reports an error
随机推荐
Learn memory management of JVM 01 - first memory
Hiengine: comparable to the local cloud native memory database engine
Is investment and finance suitable for girls? What financial products can girls buy?
手机 CPU 架构类型了解
Tabbar configuration at the bottom of wechat applet
How to clear floating?
Semantic segmentation experiment: UNET network /msrc2 dataset
语义分割实验:Unet网络/MSRC2数据集
Constructing expression binary tree with prefix expression
Application of a class of identities (vandermond convolution and hypergeometric functions)
Experimental design - using stack to realize calculator
Matlab label2idx function (convert the label matrix into a cell array with linear index)
Take you hand in hand to develop a service monitoring component
Pytorch two-layer loop to realize the segmentation of large pictures
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Understand kotlin from the perspective of an architect
NPM install reports an error
MySQL function
Learn JVM garbage collection 05 - root node enumeration, security points, and security zones (hotspot)
Swift - add navigation bar