Linux | 高级I/O函数
文章目录创建文件描述符的函数pipe函数dup函数、dup2函数readv函数、writev函数创建文件描述符的函数pipe函数不再赘述,详情见我的另一篇博客。值得一提的是,socket 基础API中有一个 socketpair函数,能够方便地创建双向管道:#include<sys/types.h>#include<sys/socket.h>int socketpair(int domain, int type, int protocol, inf fd[2]);/
复制链接