Internet Socket (非)阻塞write/read n个字节
目录一、阻塞/非阻塞的write和read简单介绍(1)write2.返回值:(2)read2.返回值:二、阻塞/非阻塞的write和read读到n个字节的写法三、send和recv四、阻塞wirte和read+超时1.setsocketopt:参数option_name: 2.I/O多路复用select()/poll():select阻塞write+超时:select阻塞read+超时:3.信号中断阻塞读/写alarm():alarm()阻塞write超时alarm()阻塞read超时总结:阻塞加超时用s