Advertisement

Linux基础 select/poll 《十一》

阅读量:

一个进程如何应对多重问题:

在这里插入图片描述

select函数:

在这里插入图片描述
在这里插入图片描述

select机制的应用 ==》 单一进程实现对多个客户端连接的管理

复制代码
    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <string.h>
    #include <sys/socket.h>
    #include <arpa/inet.h>
    #include <ctype.h>
    

全部评论 (0)

还没有任何评论哟~